| 1 | <?php |
||
| 10 | final class BeforeDeleteContentEvent extends BeforeEvent |
||
| 11 | { |
||
| 12 | public const NAME = 'ezplatform.event.content.delete.before'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var \eZ\Publish\API\Repository\Values\Content\ContentInfo |
||
| 16 | */ |
||
| 17 | private $contentInfo; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var array|null |
||
| 21 | */ |
||
| 22 | private $locations; |
||
| 23 | |||
| 24 | |||
| 25 | public function __construct(ContentInfo $contentInfo) |
||
| 29 | |||
| 30 | |||
| 31 | public function getContentInfo(): ContentInfo |
||
| 35 | |||
| 36 | |||
| 37 | function getLocations(): ?array |
||
| 41 | |||
| 42 | |||
| 43 | function setLocations(?array $locations): void |
||
| 47 | |||
| 48 | |||
| 49 | function hasLocations(): 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.