<?php
/**
* Created by simpson <simpsonwork@gmail.com>
* Date: 2019-03-19
* Time: 18:45
*/
namespace App\Entity\Profile;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Embeddable]
final class ClientRestrictions
{
#[ORM\Column(name: 'client_min_age', type: 'smallint', nullable: true)]
protected ?int $minAge;
#[ORM\Column(name: 'client_max_age', type: 'smallint', nullable: true)]
protected ?int $maxAge;
public function __construct(?int $minAge, ?int $maxAge)
{
$this->minAge = $minAge;
$this->maxAge = $maxAge;
}
public function getMinAge(): ?int
{
return $this->minAge;
}
public function getMaxAge(): ?int
{
return $this->maxAge;
}
}