| 1 | <?php |
||
| 19 | class MemberId |
||
| 20 | { |
||
| 21 | protected $userId; |
||
| 22 | protected $organizationId; |
||
| 23 | |||
| 24 | public static function generate(UserId $userId, OrganizationId $organizationId) |
||
| 28 | |||
| 29 | protected function __construct(UserId $userId, OrganizationId $organizationId) |
||
| 34 | |||
| 35 | public function userId() : UserId |
||
| 39 | |||
| 40 | public function organizationId() |
||
| 44 | |||
| 45 | public function equals(MemberId $id) : bool |
||
| 49 | |||
| 50 | public function __toString() : string |
||
| 54 | } |
||
| 55 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.