| 1 | <?php |
||
| 10 | final class SectionList |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | private $sections = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var bool |
||
| 19 | */ |
||
| 20 | private $forceBrackets = false; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * SectionList constructor. |
||
| 24 | * @param array $sections |
||
| 25 | */ |
||
| 26 | public function __construct(array $sections = []) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function __toString(): string |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return SectionList |
||
| 48 | */ |
||
| 49 | public static function newEmpty(): self |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param string $sections |
||
| 58 | * @return SectionList |
||
| 59 | */ |
||
| 60 | public static function fromString(string $sections): self |
||
| 75 | |||
| 76 | } |