Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function __construct($className) |
||
22 | { |
||
23 | if (!is_string($className)) { |
||
24 | throw new InvalidArgumentException("Class name must be a valid string."); |
||
25 | } |
||
26 | |||
27 | if (!class_exists($className)) { |
||
28 | throw new InvalidArgumentException(sprintf("Class \"%s\" does not exists.", $className)); |
||
29 | } |
||
30 | |||
31 | $this->className = $className; |
||
32 | } |
||
33 | |||
50 |