php-parser/lib/PHPParser/Node/Expr/Instanceof.php

26 lines
863 B
PHP

<?php
/**
* @property PHPParser_Node_Expr $expr Expression
* @property PHPParser_Node_Name|PHPParser_Node_Expr $class Class name
*/
class PHPParser_Node_Expr_Instanceof extends PHPParser_Node_Expr
{
/**
* Constructs an instanceof check node.
*
* @param PHPParser_Node_Expr $expr Expression
* @param PHPParser_Node_Name|PHPParser_Node_Expr $class Class name
* @param int $line Line
* @param null|string $docComment Nearest doc comment
*/
public function __construct(PHPParser_Node_Expr $expr, $class, $line = -1, $docComment = null) {
parent::__construct(
array(
'expr' => $expr,
'class' => $class
),
$line, $docComment
);
}
}