| 1 | <?php |
||
| 6 | final class NameSectionItem implements ItemInterface |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $name; |
||
| 13 | /** |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | private $sections; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * NameSectionItem constructor. |
||
| 20 | * @param string $name |
||
| 21 | * @param array $sections |
||
| 22 | */ |
||
| 23 | public function __construct(string $name, array $sections = []) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function getName(): string |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function __toString(): string |
||
| 51 | |||
| 52 | public static function fromString(string $nameSectionItem) |
||
| 61 | } |