public function __construct(Entity $entity, Effect $effect) { $this->entity = $entity; $this->effect = $effect; }