Exemple #1
0
 /**
  * Write path on file open
  *
  * @param  FileEvent $event
  * @return void
  */
 public function onFileOpen(FileEvent $event)
 {
     $this->write("[PARSE] %s\n", $event->getFile()->getPath());
 }
Exemple #2
0
 /**
  * Set File and message
  *
  * @param string $message
  * @param File $file
  */
 public function __construct($message, File $file)
 {
     parent::__construct($file);
     $this->message = $message;
 }
Exemple #3
0
 /**
  * Set Rule and Node objects
  *
  * @param RuleInterface $rule
  * @param Node $node
  * @param File $file
  */
 public function __construct(RuleInterface $rule, Node $node, File $file)
 {
     parent::__construct($file);
     $this->rule = $rule;
     $this->node = $node;
 }