| Total Complexity | 8 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class SettingsSectionBuilder implements SettingsSectionBuilderInterface |
||
| 12 | { |
||
| 13 | use HasSettingsSectionDataTrait; |
||
| 14 | |||
| 15 | public function __construct(string $id) |
||
| 16 | { |
||
| 17 | $this->id = $id; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function id(string $id) |
||
| 21 | { |
||
| 22 | $this->id = $id; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function title(string $title) |
||
| 26 | { |
||
| 27 | $this->title = $title; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function page(string $page) |
||
| 31 | { |
||
| 32 | $this->page = $page; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function description(string $description) |
||
| 36 | { |
||
| 37 | $this->description = $description; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function constraints(?ConstrainerCollectionInterface $constraints) |
||
| 41 | { |
||
| 42 | $this->constraints = $constraints; |
||
|
|
|||
| 43 | } |
||
| 44 | |||
| 45 | public function getConstraints(): ?ConstrainerCollectionInterface |
||
| 46 | { |
||
| 47 | return $this->constraints; |
||
| 48 | } |
||
| 49 | |||
| 50 | public function get(): SettingsSectionInterface |
||
| 58 | ); |
||
| 59 | } |
||
| 60 | } |
||
| 61 |