src/Offer/OfferCommandHandler.php 1 location
|
@@ 246-255 (lines=10) @@
|
| 243 |
|
* @param AbstractLabelCommand $labelCommand |
| 244 |
|
* @return Label |
| 245 |
|
*/ |
| 246 |
|
private function createLabel(AbstractLabelCommand $labelCommand) |
| 247 |
|
{ |
| 248 |
|
$labelName = new StringLiteral((string) $labelCommand->getLabel()); |
| 249 |
|
$label = $this->labelRepository->getByName($labelName); |
| 250 |
|
|
| 251 |
|
return new Label( |
| 252 |
|
$labelName->toNative(), |
| 253 |
|
$label->getVisibility() === Visibility::VISIBLE() |
| 254 |
|
); |
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
/** |
| 258 |
|
* @param AbstractUpdateTitle $translateTitle |
src/Organizer/OrganizerCommandHandler.php 1 location
|
@@ 171-180 (lines=10) @@
|
| 168 |
|
* @param AbstractLabelCommand $labelCommand |
| 169 |
|
* @return Label |
| 170 |
|
*/ |
| 171 |
|
private function createLabel(AbstractLabelCommand $labelCommand) |
| 172 |
|
{ |
| 173 |
|
$labelName = new StringLiteral((string) $labelCommand->getLabel()); |
| 174 |
|
$label = $this->labelRepository->getByName($labelName); |
| 175 |
|
|
| 176 |
|
return new Label( |
| 177 |
|
$labelName->toNative(), |
| 178 |
|
$label->getVisibility() === Visibility::VISIBLE() |
| 179 |
|
); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
/** |
| 183 |
|
* @param DeleteOrganizer $deleteOrganizer |