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;
|
|
|
|
|
2011-05-29 19:38:04 +02:00
|
|
|
/**
|
|
|
|
* @property array $parts Encapsed string array
|
|
|
|
*/
|
2014-02-06 14:44:16 +01:00
|
|
|
class ShellExec extends Expr
|
2011-05-27 18:20:44 +02:00
|
|
|
{
|
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
|
|
|
*/
|
2012-04-29 23:32:09 +02:00
|
|
|
public function __construct($parts, array $attributes = array()) {
|
2011-08-11 10:25:51 +02:00
|
|
|
parent::__construct(
|
|
|
|
array(
|
|
|
|
'parts' => $parts
|
|
|
|
),
|
2012-04-29 23:32:09 +02:00
|
|
|
$attributes
|
2011-08-11 10:25:51 +02:00
|
|
|
);
|
|
|
|
}
|
2011-05-27 18:20:44 +02:00
|
|
|
}
|