2011-06-05 18:40:04 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property PHPParser_Node_Expr $expr Expression
|
2011-08-11 08:57:13 +02:00
|
|
|
* @property PHPParser_Node_Name|PHPParser_Node_Expr $class Class name
|
2011-06-05 18:40:04 +02:00
|
|
|
*/
|
|
|
|
class PHPParser_Node_Expr_Instanceof extends PHPParser_Node_Expr
|
|
|
|
{
|
2011-08-11 08:57:13 +02:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
);
|
|
|
|
}
|
2011-06-05 18:40:04 +02:00
|
|
|
}
|