| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class TeamBuilder extends ModelBuilder |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Set the Team name. |
||
| 13 | */ |
||
| 14 | 1 | public function setName(string $name): self |
|
| 15 | { |
||
| 16 | 1 | $this->params['name'] = $name; |
|
| 17 | |||
| 18 | 1 | return $this; |
|
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Set the Team type. |
||
| 23 | */ |
||
| 24 | 1 | public function setType(string $type): self |
|
| 25 | { |
||
| 26 | 1 | $this->params['type'] = $type; |
|
| 27 | |||
| 28 | 1 | return $this; |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Set the display name. |
||
| 33 | */ |
||
| 34 | 1 | public function setDisplayName(string $diplayName): self |
|
| 39 | } |
||
| 40 | |||
| 41 | 4 | protected function getRequiredFields(string $buildType = self::BUILD_FOR_CREATE): array |
|
| 51 |