2011-05-27 18:20:44 +02:00
|
|
|
<?php
|
|
|
|
|
2014-02-06 14:44:16 +01:00
|
|
|
namespace PhpParser\Node\Expr;
|
|
|
|
|
|
|
|
use PhpParser\Node\Expr;
|
|
|
|
|
|
|
|
class ShellExec extends Expr
|
2011-05-27 18:20:44 +02:00
|
|
|
{
|
2015-02-28 18:44:28 +01:00
|
|
|
/** @var array Encapsed string array */
|
|
|
|
public $parts;
|
|
|
|
|
2011-08-11 10:25:51 +02:00
|
|
|
/**
|
|
|
|
* Constructs a shell exec (backtick) node.
|
|
|
|
*
|
2014-02-06 14:44:16 +01:00
|
|
|
* @param array $parts Encapsed string array
|
|
|
|
* @param array $attributes Additional attributes
|
2011-08-11 10:25:51 +02:00
|
|
|
*/
|
2015-03-28 18:14:24 +01:00
|
|
|
public function __construct(array $parts, array $attributes = array()) {
|
2015-02-28 18:44:28 +01:00
|
|
|
parent::__construct(null, $attributes);
|
|
|
|
$this->parts = $parts;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSubNodeNames() {
|
|
|
|
return array('parts');
|
2011-08-11 10:25:51 +02:00
|
|
|
}
|
2015-02-28 18:44:28 +01:00
|
|
|
}
|