Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function __construct($value) |
||
12 | { |
||
13 | if (false === \is_string($value)) { |
||
14 | throw new InvalidNativeArgumentException($value, array('string')); |
||
15 | } |
||
16 | |||
17 | if (strlen($value) < 2) { |
||
18 | throw new InvalidArgumentException('The name of a copyright holder should be at least 2 characters'); |
||
19 | } |
||
20 | |||
21 | parent::__construct(substr($value, 0, 250)); |
||
22 | } |
||
23 | } |
||
24 |