public function getResultPrice() { return (double) $this->getDiscountPrice() ?: (double) $this->price * (1 - ((double) $this->discount ?: 0) / 100); }