菜谱项目

ShellExec.php 575B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace PhpParser\Node\Expr;
  3. use PhpParser\Node\Expr;
  4. class ShellExec extends Expr
  5. {
  6. /** @var array Encapsed string array */
  7. public $parts;
  8. /**
  9. * Constructs a shell exec (backtick) node.
  10. *
  11. * @param array $parts Encapsed string array
  12. * @param array $attributes Additional attributes
  13. */
  14. public function __construct(array $parts, array $attributes = array()) {
  15. parent::__construct($attributes);
  16. $this->parts = $parts;
  17. }
  18. public function getSubNodeNames() {
  19. return array('parts');
  20. }
  21. }