예제 #1
0
 /**
  * XmlLintError constructor.
  *
  * @param string $type
  * @param int    $code
  * @param string $error
  * @param string $file
  * @param int    $line
  * @param int    $column
  */
 public function __construct($type, $code, $error, $file, $line, $column)
 {
     parent::__construct($type, $error, $file, $line);
     $this->code = $code;
     $this->column = $column;
 }
예제 #2
0
 /**
  * YamlLintError constructor.
  *
  * @param string $type
  * @param string $error
  * @param string $file
  * @param int    $line
  * @param string $snippet
  */
 public function __construct($type, $error, $file, $line = -1, $snippet = null)
 {
     parent::__construct($type, $error, $file, $line);
     $this->snippet = $snippet;
 }