| Total Complexity | 10 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ChannelBuilder extends ModelBuilder |
||
| 10 | { |
||
| 11 | 2 | public function setTeamId(string $teamId): self |
|
| 12 | { |
||
| 13 | 2 | $this->params['team_id'] = $teamId; |
|
| 14 | |||
| 15 | 2 | return $this; |
|
| 16 | } |
||
| 17 | |||
| 18 | 2 | public function setName(string $name): self |
|
| 19 | { |
||
| 20 | 2 | $this->params['name'] = $name; |
|
| 21 | |||
| 22 | 2 | return $this; |
|
| 23 | } |
||
| 24 | |||
| 25 | 2 | public function setDisplayName(string $displayName): self |
|
| 26 | { |
||
| 27 | 2 | $this->params['display_name'] = $displayName; |
|
| 28 | |||
| 29 | 2 | return $this; |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | public function setPurpose(string $purpose): self |
|
| 33 | { |
||
| 34 | 1 | $this->params['purpose'] = $purpose; |
|
| 35 | |||
| 36 | 1 | return $this; |
|
| 37 | } |
||
| 38 | |||
| 39 | 1 | public function setHeader(string $header): self |
|
| 44 | } |
||
| 45 | |||
| 46 | 2 | public function setType(string $type): self |
|
| 51 | } |
||
| 52 | |||
| 53 | 5 | protected function getRequiredFields(string $buildType = self::BUILD_FOR_CREATE): array |
|
| 69 | } |
||
| 70 | } |
||
| 72 |