processor = $processor; } public function beforeSave(Entity $entity, array $options = []): void { $this->processor->process($entity, $options); } }