src/Horse/Transformers/ClassTransformer.php
public function transform(Command $command)
    {
        $block = $this->block->reflector(new \ReflectionClass($command));
        $lines = [];

        foreach ($block->getLines() as $line)
        {
            $lines[] = $line->stripTag();
        }

        list($name, $description, $signature) = $lines;

        $command->setName($name);
        $command->setDescription($description);
        $command->setDefinition($this->getDefinition($signature));
    }
public function transform(Command $command)
    {
        $block = $this->block->reflector(new \ReflectionClass($command));
        $lines = [];

        foreach ($block->getLines() as $line)
        {
            $lines[] = $line->stripTag();
        }

        list($name, $description, $signature) = $lines;

        $command->setName($name);
        $command->setDescription($description);
        $command->setDefinition($this->getDefinition($signature));
    }
public function transform ( Command $ command ) { $ block = $ this -> block -> reflector ( new \ ReflectionClass ( $ command ) ) ; $ lines = [ ] ; foreach ( $ block -> getLines ( ) as $ line ) { $ lines [ ] = $ line -> stripTag ( ) ; } list ( $ name , $ description , $ signature ) = $ lines ; $ command -> setName ( $ name ) ; $ command -> setDescription ( $ description ) ; $ command -> setDefinition ( $ this -> getDefinition ( $ signature ) ) ; }
Read the command metadata and apply it.

@param Command $command
@return void
Read the command metadata and apply it .