Esempio n. 1
0
 /**
  * Set File and message
  *
  * @param string $message
  * @param File $file
  */
 public function __construct($message, File $file)
 {
     parent::__construct($file);
     $this->message = $message;
 }
Esempio n. 2
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;
 }