src/Entity/Profile/CarPricing.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Profile;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Serializer\Annotation\Groups;
  5. #[ORM\Embeddable]
  6. final class CarPricing
  7. {
  8.     #[ORM\Column(name: 'car_provided', type: 'boolean', nullable: true)]
  9.     protected ?bool $provided;
  10.     public function __construct(?bool $provided)
  11.     {
  12.         $this->provided = $provided;
  13.     }
  14.     #[Groups(['preview', 'listing'])]
  15.     public function isProvided(): ?bool
  16.     {
  17.         return $this->provided;
  18.     }
  19. }