| Conditions | 5 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function __construct($filePath, $name, $passphrase = null) |
||
| 31 | { |
||
| 32 | if (!is_string($filePath)) { |
||
| 33 | throw InvalidArgumentException::invalidType('string', $filePath); |
||
| 34 | } |
||
| 35 | |||
| 36 | if (!is_string($name)) { |
||
| 37 | throw InvalidArgumentException::invalidType('string', $name); |
||
| 38 | } |
||
| 39 | |||
| 40 | if ($passphrase && !is_string($passphrase)) { |
||
| 41 | throw InvalidArgumentException::invalidType('string', $passphrase); |
||
| 42 | } |
||
| 43 | |||
| 44 | $this->filePath = $filePath; |
||
| 45 | $this->passphrase = $passphrase; |
||
| 46 | $this->name = $name; |
||
| 47 | } |
||
| 48 | |||
| 81 |