PageRenderTime 45ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/PHPParser/Node/Expr/Empty.php

http://github.com/nikic/PHP-Parser
PHP | 22 lines | 12 code | 1 blank | 9 comment | 0 complexity | c8b1160fa9236494185697d6cda0de4c MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <?php
  2. /**
  3. * @property PHPParser_Node_Expr $var Variable
  4. */
  5. class PHPParser_Node_Expr_Empty extends PHPParser_Node_Expr
  6. {
  7. /**
  8. * Constructs an empty() node.
  9. *
  10. * @param PHPParser_Node_Expr $var Variable
  11. * @param array $attributes Additional attributes
  12. */
  13. public function __construct(PHPParser_Node_Expr $var, array $attributes = array()) {
  14. parent::__construct(
  15. array(
  16. 'var' => $var
  17. ),
  18. $attributes
  19. );
  20. }
  21. }