Altax\Module\Task\Resource\DefinedTask::setDescription PHP Method

setDescription() public method

public setDescription ( $description )
    public function setDescription($description)
    {
        $this->description = $description;
        return $this;
    }

Usage Example

Example #1
0
 public function testOverrideDescription()
 {
     $container = new Container();
     $task = new DefinedTask();
     $task->setName("test");
     $task->setDescription("custom description");
     $application = new Application($container);
     $application->setAutoExit(false);
     $application->add(new TestCommand($task));
     $command = $application->find("test");
     $this->assertEquals("custom description", $command->getDescription());
 }
All Usage Examples Of Altax\Module\Task\Resource\DefinedTask::setDescription