|
@@ 144-146 (lines=3) @@
|
| 141 |
|
protected function parseOptions(array& $options) |
| 142 |
|
{ |
| 143 |
|
// Ensure we got a valid 'signer' key. |
| 144 |
|
if ((null === $this->signer && !isset($options['signer'])) || (isset($options['signer']) && !$options['signer'] instanceof oauth1\interfaces\Signer)) { |
| 145 |
|
throw new \InvalidArgumentException('A [signer] key with a Signer implementing '.oauth1\interfaces\Signer::class.' must be provided.'); |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
// Ensure the 'client' is set and contains valid Credentials. |
| 149 |
|
if ((null === $this->client && !isset($options['client'])) || (isset($options['client']) && !$options['client'] instanceof auth\id\credentials\Client)) { |
|
@@ 149-151 (lines=3) @@
|
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
// Ensure the 'client' is set and contains valid Credentials. |
| 149 |
|
if ((null === $this->client && !isset($options['client'])) || (isset($options['client']) && !$options['client'] instanceof auth\id\credentials\Client)) { |
| 150 |
|
throw new \InvalidArgumentException('A [client] key with a Credentials implementing '.auth\id\credentials\Client::class.' must be provided.'); |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
// Ensure the 'params' key is always set. |
| 154 |
|
if (!isset($options['params'])) { |