| @@ 35-45 (lines=11) @@ | ||
| 32 | /** |
|
| 33 | * {@inheritdoc} |
|
| 34 | */ |
|
| 35 | public function updateDescription($id, $description) |
|
| 36 | { |
|
| 37 | ||
| 38 | $this->guardId($id); |
|
| 39 | ||
| 40 | $commandClass = $this->getCommandClass('UpdateDescription'); |
|
| 41 | ||
| 42 | return $this->commandBus->dispatch( |
|
| 43 | new $commandClass($id, $description) |
|
| 44 | ); |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * {@inheritdoc} |
|
| @@ 50-60 (lines=11) @@ | ||
| 47 | /** |
|
| 48 | * {@inheritdoc} |
|
| 49 | */ |
|
| 50 | public function updateTypicalAgeRange($id, $ageRange) |
|
| 51 | { |
|
| 52 | ||
| 53 | $this->guardId($id); |
|
| 54 | ||
| 55 | $commandClass = $this->getCommandClass('UpdateTypicalAgeRange'); |
|
| 56 | ||
| 57 | return $this->commandBus->dispatch( |
|
| 58 | new $commandClass($id, $ageRange) |
|
| 59 | ); |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * {@inheritdoc} |
|
| @@ 81-91 (lines=11) @@ | ||
| 78 | /** |
|
| 79 | * {@inheritdoc} |
|
| 80 | */ |
|
| 81 | public function updateOrganizer($id, $organizerId) |
|
| 82 | { |
|
| 83 | ||
| 84 | $this->guardId($id); |
|
| 85 | ||
| 86 | $commandClass = $this->getCommandClass('UpdateOrganizer'); |
|
| 87 | ||
| 88 | return $this->commandBus->dispatch( |
|
| 89 | new $commandClass($id, $organizerId) |
|
| 90 | ); |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| 94 | * {@inheritdoc} |
|
| @@ 96-106 (lines=11) @@ | ||
| 93 | /** |
|
| 94 | * {@inheritdoc} |
|
| 95 | */ |
|
| 96 | public function deleteOrganizer($id, $organizerId) |
|
| 97 | { |
|
| 98 | ||
| 99 | $this->guardId($id); |
|
| 100 | ||
| 101 | $commandClass = $this->getCommandClass('DeleteOrganizer'); |
|
| 102 | ||
| 103 | return $this->commandBus->dispatch( |
|
| 104 | new $commandClass($id, $organizerId) |
|
| 105 | ); |
|
| 106 | } |
|
| 107 | ||
| 108 | /** |
|
| 109 | * {@inheritdoc} |
|
| @@ 111-122 (lines=12) @@ | ||
| 108 | /** |
|
| 109 | * {@inheritdoc} |
|
| 110 | */ |
|
| 111 | public function updateContactPoint($id, ContactPoint $contactPoint) |
|
| 112 | { |
|
| 113 | ||
| 114 | $this->guardId($id); |
|
| 115 | ||
| 116 | $commandClass = $this->getCommandClass('UpdateContactPoint'); |
|
| 117 | ||
| 118 | return $this->commandBus->dispatch( |
|
| 119 | new $commandClass($id, $contactPoint) |
|
| 120 | ); |
|
| 121 | ||
| 122 | } |
|
| 123 | ||
| 124 | /** |
|
| 125 | * {@inheritdoc} |
|
| @@ 127-138 (lines=12) @@ | ||
| 124 | /** |
|
| 125 | * {@inheritdoc} |
|
| 126 | */ |
|
| 127 | public function updateBookingInfo($id, BookingInfo $bookingInfo) |
|
| 128 | { |
|
| 129 | ||
| 130 | $this->guardId($id); |
|
| 131 | ||
| 132 | $commandClass = $this->getCommandClass('UpdateBookingInfo'); |
|
| 133 | ||
| 134 | return $this->commandBus->dispatch( |
|
| 135 | new $commandClass($id, $bookingInfo) |
|
| 136 | ); |
|
| 137 | ||
| 138 | } |
|
| 139 | ||
| 140 | /** |
|
| 141 | * {@inheritdoc} |
|