| Total Complexity | 7 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class ArrayItem implements ExporterItem, Indentable |
||
| 11 | { |
||
| 12 | public ?string $key; |
||
| 13 | |||
| 14 | /** @var mixed */ |
||
| 15 | private $value; |
||
| 16 | private bool $wrapValue = true; |
||
| 17 | private bool $wrapKey; |
||
| 18 | private int $indentLevel = 0; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param mixed $value |
||
| 22 | */ |
||
| 23 | public function __construct($value, string $key = null, bool $wrapKey = true) |
||
| 28 | } |
||
| 29 | |||
| 30 | public function setIndentLevel(int $indentLevel = 0): self |
||
| 31 | { |
||
| 32 | $this->indentLevel = $indentLevel; |
||
| 33 | return $this; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function toString(): string |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param mixed $value |
||
| 50 | */ |
||
| 51 | public function setValue($value, bool $wrapValue = true): self |
||
| 57 | } |
||
| 58 | } |
||
| 59 |