| 1 | <?php |
||
| 10 | final class BeforeUnhideLocationEvent extends BeforeEvent |
||
| 11 | { |
||
| 12 | public const NAME = 'ezplatform.event.location.unhide.before'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var \eZ\Publish\API\Repository\Values\Content\Location |
||
| 16 | */ |
||
| 17 | private $location; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var \eZ\Publish\API\Repository\Values\Content\Location|null |
||
| 21 | */ |
||
| 22 | private $revealedLocation; |
||
| 23 | |||
| 24 | |||
| 25 | public function __construct(Location $location) |
||
| 29 | |||
| 30 | |||
| 31 | public function getLocation(): Location |
||
| 35 | |||
| 36 | |||
| 37 | function getRevealedLocation(): ?Location |
||
| 41 | |||
| 42 | |||
| 43 | function setRevealedLocation(?Location $revealedLocation): void |
||
| 47 | |||
| 48 | |||
| 49 | function hasRevealedLocation(): bool |
||
| 53 | } |
||
| 54 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.