|
@@ 97-99 (lines=3) @@
|
| 94 |
|
throw new PacktpublrArgumentException('Packtpublr requires both email and password as arguments.'); |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
if (!isset($options['email']) || isset($options['email']) && !is_string($options['email'])) { |
| 98 |
|
throw new PacktpublrArgumentException('Packtpublr email address is required.'); |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
if (!isset($options['password']) || isset($options['password']) && !is_string($options['password'])) { |
| 102 |
|
throw new PacktpublrArgumentException('Packtpublr password is required.'); |
|
@@ 101-103 (lines=3) @@
|
| 98 |
|
throw new PacktpublrArgumentException('Packtpublr email address is required.'); |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
if (!isset($options['password']) || isset($options['password']) && !is_string($options['password'])) { |
| 102 |
|
throw new PacktpublrArgumentException('Packtpublr password is required.'); |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
$this->email = $options['email']; |
| 106 |
|
$this->password = $options['password']; |