processor = $processor; } /** * @param array $options */ public function afterSave(Entity $entity, array $options): void { if (!empty($options[SaveOption::SILENT]) || !empty($options['noNotifications'])) { return; } $this->processor->afterSave($entity, $options); } /** * @param array $options */ public function beforeRemove(Entity $entity, array $options): void { if (!empty($options[SaveOption::SILENT]) || !empty($options['noNotifications'])) { return; } $this->processor->beforeRemove($entity, $options); } /** * @param array $options */ public function afterRemove(Entity $entity, array $options): void { if (!empty($options[SaveOption::SILENT])) { return; } $this->processor->afterRemove($entity); } }