displayName = trim($displayName); $this->eventName = trim($eventName); } /** * returns a translated name to be presented in the web interface. * * Example: "created" (en), "kreita" (eo) * * @since 18.0.0 */ public function getDisplayName(): string { return $this->displayName; } /** * returns the event name that is emitted by the EventDispatcher, e.g.: * * Example: "OCA\MyApp\Factory\Cats::postCreated" * * @since 18.0.0 */ public function getEventName(): string { return $this->eventName; } }