| 1 | <?php |
||
| 12 | final class BeforeUpdateContentMetadataEvent extends BeforeEvent |
||
| 13 | { |
||
| 14 | public const NAME = 'ezplatform.event.content.metadata_update.before'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var \eZ\Publish\API\Repository\Values\Content\ContentInfo |
||
| 18 | */ |
||
| 19 | private $contentInfo; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var \eZ\Publish\API\Repository\Values\Content\ContentMetadataUpdateStruct |
||
| 23 | */ |
||
| 24 | private $contentMetadataUpdateStruct; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var \eZ\Publish\API\Repository\Values\Content\Content|null |
||
| 28 | */ |
||
| 29 | private $content; |
||
| 30 | |||
| 31 | |||
| 32 | public function __construct(ContentInfo $contentInfo, ContentMetadataUpdateStruct $contentMetadataUpdateStruct) |
||
| 37 | |||
| 38 | |||
| 39 | public function getContentInfo(): ContentInfo |
||
| 43 | |||
| 44 | |||
| 45 | public function getContentMetadataUpdateStruct(): ContentMetadataUpdateStruct |
||
| 49 | |||
| 50 | |||
| 51 | function getContent(): ?Content |
||
| 55 | |||
| 56 | |||
| 57 | function setContent(?Content $content): void |
||
| 61 | |||
| 62 | |||
| 63 | function hasContent(): bool |
||
| 67 | } |
||
| 68 |
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.