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 |
src/Offer/OfferCommandHandler.php 1 location
|
@@ 282-291 (lines=10) @@
|
| 279 |
|
* @param AbstractLabelCommand $labelCommand |
| 280 |
|
* @return Label |
| 281 |
|
*/ |
| 282 |
|
private function createLabel(AbstractLabelCommand $labelCommand) |
| 283 |
|
{ |
| 284 |
|
$labelName = new StringLiteral((string) $labelCommand->getLabel()); |
| 285 |
|
$label = $this->labelRepository->getByName($labelName); |
| 286 |
|
|
| 287 |
|
return new Label( |
| 288 |
|
$labelName->toNative(), |
| 289 |
|
$label->getVisibility() === Visibility::VISIBLE() |
| 290 |
|
); |
| 291 |
|
} |
| 292 |
|
|
| 293 |
|
/** |
| 294 |
|
* @param AbstractUpdateTitle $translateTitle |