| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function __construct( |
||
| 27 | string $creatorId, |
||
| 28 | string $name, |
||
| 29 | string $id = null, |
||
| 30 | string $slug = null |
||
| 31 | ) { |
||
| 32 | if ('' === $creatorId) { |
||
| 33 | throw new InvalidArgumentException('User id cannot be null'); |
||
| 34 | } |
||
| 35 | $this->id = $id; |
||
| 36 | $this->creatorId = $creatorId; |
||
| 37 | $this->name = $name; |
||
| 38 | $this->slug = $slug; |
||
| 39 | } |
||
| 40 | |||
| 61 |