src/Organizer/OrganizerCommandHandler.php 1 location
|
@@ 198-207 (lines=10) @@
|
| 195 |
|
* @param AbstractLabelCommand $labelCommand |
| 196 |
|
* @return Label |
| 197 |
|
*/ |
| 198 |
|
private function createLabel(AbstractLabelCommand $labelCommand) |
| 199 |
|
{ |
| 200 |
|
$labelName = new StringLiteral((string) $labelCommand->getLabel()); |
| 201 |
|
$label = $this->labelRepository->getByName($labelName); |
| 202 |
|
|
| 203 |
|
return new Label( |
| 204 |
|
$labelName->toNative(), |
| 205 |
|
$label->getVisibility() === Visibility::VISIBLE() |
| 206 |
|
); |
| 207 |
|
} |
| 208 |
|
|
| 209 |
|
/** |
| 210 |
|
* @param DeleteOrganizer $deleteOrganizer |
src/Offer/OfferCommandHandler.php 1 location
|
@@ 334-343 (lines=10) @@
|
| 331 |
|
* @param AbstractLabelCommand $labelCommand |
| 332 |
|
* @return Label |
| 333 |
|
*/ |
| 334 |
|
private function createLabel(AbstractLabelCommand $labelCommand) |
| 335 |
|
{ |
| 336 |
|
$labelName = new StringLiteral((string) $labelCommand->getLabel()); |
| 337 |
|
$label = $this->labelRepository->getByName($labelName); |
| 338 |
|
|
| 339 |
|
return new Label( |
| 340 |
|
$labelName->toNative(), |
| 341 |
|
$label->getVisibility() === Visibility::VISIBLE() |
| 342 |
|
); |
| 343 |
|
} |
| 344 |
|
|
| 345 |
|
/** |
| 346 |
|
* @param AbstractUpdateTitle $translateTitle |