src/Offer/OfferCommandHandler.php 1 location
|
@@ 316-325 (lines=10) @@
|
| 313 |
|
* @param AbstractLabelCommand $labelCommand |
| 314 |
|
* @return Label |
| 315 |
|
*/ |
| 316 |
|
private function createLabel(AbstractLabelCommand $labelCommand) |
| 317 |
|
{ |
| 318 |
|
$labelName = new StringLiteral((string) $labelCommand->getLabel()); |
| 319 |
|
$label = $this->labelRepository->getByName($labelName); |
| 320 |
|
|
| 321 |
|
return new Label( |
| 322 |
|
$labelName->toNative(), |
| 323 |
|
$label->getVisibility() === Visibility::VISIBLE() |
| 324 |
|
); |
| 325 |
|
} |
| 326 |
|
|
| 327 |
|
/** |
| 328 |
|
* @param AbstractUpdateTitle $translateTitle |
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 |