Conditions | 5 |
Paths | 12 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function __construct($index, $follow) |
||
23 | { |
||
24 | if (null === $index) { |
||
25 | $index = true; |
||
26 | } |
||
27 | if (null === $follow) { |
||
28 | $follow = true; |
||
29 | } |
||
30 | if (!is_bool($index)) { |
||
31 | throw new InvalidRobotsIndexException(); |
||
32 | } |
||
33 | if (!is_bool($follow)) { |
||
34 | throw new InvalidRobotsFollowException(); |
||
35 | } |
||
36 | $this->index = $index; |
||
37 | $this->follow = $follow; |
||
38 | } |
||
39 | |||
58 |