1 | <?php |
||
20 | class StreamName |
||
21 | { |
||
22 | private $name; |
||
23 | private $aggregateId; |
||
24 | |||
25 | public function __construct(Id $aggregateId, $name) |
||
30 | |||
31 | private function setName($name) |
||
36 | |||
37 | private function checkNameIsValid($name) |
||
43 | |||
44 | public function name() |
||
48 | |||
49 | public function aggregateId() |
||
53 | |||
54 | public function __toString() |
||
58 | } |
||
59 |