/** * Write path on file open * * @param FileEvent $event * @return void */ public function onFileOpen(FileEvent $event) { $this->write("[PARSE] %s\n", $event->getFile()->getPath()); }
/** * Set File and message * * @param string $message * @param File $file */ public function __construct($message, File $file) { parent::__construct($file); $this->message = $message; }
/** * 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; }