Mercurial > hg > cmmr2012-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c75dbcec494b |
---|---|
1 <?php declare(strict_types=1); | |
2 | |
3 namespace PhpParser\Node\Scalar; | |
4 | |
5 use PhpParser\Node\Expr; | |
6 use PhpParser\Node\Scalar; | |
7 | |
8 class Encapsed extends Scalar | |
9 { | |
10 /** @var Expr[] list of string parts */ | |
11 public $parts; | |
12 | |
13 /** | |
14 * Constructs an encapsed string node. | |
15 * | |
16 * @param Expr[] $parts Encaps list | |
17 * @param array $attributes Additional attributes | |
18 */ | |
19 public function __construct(array $parts, array $attributes = []) { | |
20 parent::__construct($attributes); | |
21 $this->parts = $parts; | |
22 } | |
23 | |
24 public function getSubNodeNames() : array { | |
25 return ['parts']; | |
26 } | |
27 | |
28 public function getType() : string { | |
29 return 'Scalar_Encapsed'; | |
30 } | |
31 } |