| 1 | <?php declare(strict_types = 1); |
||
| 13 | class PropertyGenerator extends AbstractGenerator |
||
| 14 | { |
||
| 15 | use VisibilityTrait; |
||
| 16 | |||
| 17 | /** @var string Property name */ |
||
| 18 | protected $name; |
||
| 19 | |||
| 20 | /** @var string Property value */ |
||
| 21 | protected $value; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * PropertyGenerator constructor. |
||
| 25 | * |
||
| 26 | * @param string $name Property name |
||
| 27 | * @param mixed $value Property value |
||
| 28 | * @param AbstractGenerator|null $parent Parent generator |
||
| 29 | */ |
||
| 30 | public function __construct(string $name, $value = null, AbstractGenerator $parent = null) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function code(int $indentation = 0) : string |
||
| 58 | } |
||
| 59 |