GrumPHP\Event\RunnerEvent::getContext PHP Method

getContext() public method

public getContext ( ) : GrumPHP\Task\Context\ContextInterface
return GrumPHP\Task\Context\ContextInterface
    public function getContext()
    {
        return $this->context;
    }

Usage Example

 /**
  * @param RunnerEvent $e
  *
  * @return void
  * @throws ProcessException
  */
 public function popStash(RunnerEvent $e)
 {
     if (!$this->isStashEnabled($e->getContext())) {
         return;
     }
     $this->doPopStash();
 }