src/Entity/ExpressPricing.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Embeddable]
  5. final class ExpressPricing
  6. {
  7.     #[ORM\Column(name'express_provided'type'boolean'nullabletrue)]
  8.     protected ?bool $provided;
  9.     #[ORM\Column(name'express_price'type'integer'nullabletrue)]
  10.     protected ?int $price;
  11.     public function __construct(?bool $provied, ?int $price)
  12.     {
  13.         $this->provided $provied;
  14.         $this->price $price;
  15.     }
  16.     public function isProvided(): ?bool
  17.     {
  18.         return $this->provided;
  19.     }
  20.     public function getPrice(): ?int
  21.     {
  22.         return $this->price;
  23.     }
  24. }