GrumPHP\Task\TaskInterface::getName PHP Method

getName() public method

public getName ( ) : string
return string
    public function getName();

Usage Example

 public function let(GrumPHP $grumPHP, EventDispatcherInterface $eventDispatcher, TaskInterface $task1, TaskInterface $task2, ContextInterface $context)
 {
     $this->beConstructedWith($grumPHP, $eventDispatcher);
     $task1->getName()->willReturn('task1');
     $task1->canRunInContext($context)->willReturn(true);
     $task2->getName()->willReturn('task2');
     $task2->canRunInContext($context)->willReturn(true);
     $grumPHP->stopOnFailure()->willReturn(false);
     $grumPHP->getTaskMetadata('task1')->willReturn(array('priority' => 0));
     $grumPHP->getTaskMetadata('task2')->willReturn(array('priority' => 0));
     $this->addTask($task1);
     $this->addTask($task2);
 }
All Usage Examples Of GrumPHP\Task\TaskInterface::getName