GrumPHP\Parser\ParserInterface::isInstalled PHP Méthode

isInstalled() public méthode

public isInstalled ( ) : boolean
Résultat boolean
    public function isInstalled();

Usage Example

Exemple #1
0
 /**
  * @param GrumPHP         $grumPHP
  * @param ParserInterface $parser
  */
 public function __construct(GrumPHP $grumPHP, ParserInterface $parser)
 {
     $this->grumPHP = $grumPHP;
     $this->parser = $parser;
     if (!$parser->isInstalled()) {
         throw new RuntimeException(sprintf('The %s can\'t run on your system. Please install all dependencies.', $this->getName()));
     }
 }
All Usage Examples Of GrumPHP\Parser\ParserInterface::isInstalled
ParserInterface