PageRenderTime 162ms CodeModel.GetById 100ms app.highlight 1ms RepoModel.GetById 60ms app.codeStats 0ms

/scanner/PHP-Parser/lib/PHPParser/Node/Expr/Empty.php

https://bitbucket.org/theguly/thaps
PHP | 23 lines | 12 code | 1 blank | 10 comment | 0 complexity | 2c82d9bcb730df0325ce13315d5534a1 MD5 | raw file
 1<?php
 2
 3/**
 4 * @property PHPParser_Node_Expr $var Variable
 5 */
 6class PHPParser_Node_Expr_Empty extends PHPParser_Node_Expr
 7{
 8    /**
 9     * Constructs an empty() node.
10     *
11     * @param PHPParser_Node_Expr $var        Variable
12     * @param int                 $line       Line
13     * @param null|string         $docComment Nearest doc comment
14     */
15    public function __construct(PHPParser_Node_Expr $var, $line = -1, $docComment = null) {
16        parent::__construct(
17            array(
18                'var' => $var
19            ),
20            $line, $docComment
21        );
22    }
23}