| 1 | <?php |
||
| 12 | class SerialLengthValidator implements ValidatorInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var integer |
||
| 16 | */ |
||
| 17 | private $min; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var integer |
||
| 21 | */ |
||
| 22 | private $max; |
||
| 23 | |||
| 24 | 96 | public function __construct(int $min, int $max) |
|
| 29 | |||
| 30 | 192 | public function validate(AccountNumber $number): ResultInterface |
|
| 48 | } |
||
| 49 |