| 1 | <?php |
||
| 10 | final class BeforeEmptyTrashEvent extends BeforeEvent |
||
| 11 | { |
||
| 12 | public const NAME = 'ezplatform.event.trash.empty.before'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var \eZ\Publish\API\Repository\Values\Content\Trash\TrashItemDeleteResultList|null |
||
| 16 | */ |
||
| 17 | private $resultList; |
||
| 18 | |||
| 19 | |||
| 20 | public function __construct() |
||
| 23 | |||
| 24 | |||
| 25 | function getResultList(): ?TrashItemDeleteResultList |
||
| 29 | |||
| 30 | |||
| 31 | function setResultList(?TrashItemDeleteResultList $resultList): void |
||
| 35 | |||
| 36 | |||
| 37 | function hasResultList(): bool |
||
| 41 | } |
||
| 42 |
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.