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 AbstractTranslateTitle $translateTitle |
src/Organizer/OrganizerCommandHandler.php 1 location
|
@@ 111-120 (lines=10) @@
|
| 108 |
|
* @param AbstractLabelCommand $labelCommand |
| 109 |
|
* @return Label |
| 110 |
|
*/ |
| 111 |
|
private function createLabel(AbstractLabelCommand $labelCommand) |
| 112 |
|
{ |
| 113 |
|
$labelName = new StringLiteral((string) $labelCommand->getLabel()); |
| 114 |
|
$label = $this->labelRepository->getByName($labelName); |
| 115 |
|
|
| 116 |
|
return new Label( |
| 117 |
|
$labelName->toNative(), |
| 118 |
|
$label->getVisibility() === Visibility::VISIBLE() |
| 119 |
|
); |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
/** |
| 123 |
|
* @param DeleteOrganizer $deleteOrganizer |