public function __construct(Entity $entity, Potion $potion) { $this->entity = $entity; $this->potion = $potion; $this->effects = $potion->getEffects(); }