AppStateESS/homestead

View on GitHub
class/Command/GetDamageTypesCommand.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Homestead\Command;

use \Homestead\DamageTypeFactory;

class GetDamageTypesCommand extends Command {

    public function getRequestVars(){
        return array('action'=>'GetDamageTypes');
    }

    public function execute(CommandContext $context)
    {
        echo json_encode(DamageTypeFactory::getDamageTypeAssoc());
        exit;
    }
}