src/Entity/Profile/ClientRestrictions.php line 13

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by simpson <simpsonwork@gmail.com>
  4.  * Date: 2019-03-19
  5.  * Time: 18:45
  6.  */
  7. namespace App\Entity\Profile;
  8. use Doctrine\ORM\Mapping as ORM;
  9. #[ORM\Embeddable]
  10. final class ClientRestrictions
  11. {
  12.     #[ORM\Column(name'client_min_age'type'smallint'nullabletrue)]
  13.     protected ?int $minAge;
  14.     #[ORM\Column(name'client_max_age'type'smallint'nullabletrue)]
  15.     protected ?int $maxAge;
  16.     public function __construct(?int $minAge, ?int $maxAge)
  17.     {
  18.         $this->minAge $minAge;
  19.         $this->maxAge $maxAge;
  20.     }
  21.     public function getMinAge(): ?int
  22.     {
  23.         return $this->minAge;
  24.     }
  25.     public function getMaxAge(): ?int
  26.     {
  27.         return $this->maxAge;
  28.     }
  29. }