src/Parameter/EncryptParameter.php 1 location
|
@@ 117-124 (lines=8) @@
|
| 114 |
|
* @param string $key |
| 115 |
|
* @param mixed $value |
| 116 |
|
*/ |
| 117 |
|
public function set($key, $value) |
| 118 |
|
{ |
| 119 |
|
if (!in_array($key, $this->parametersName, true)) { |
| 120 |
|
throw new InvalidArgumentException(sprintf('%s is not a valid parameter name.', $key)); |
| 121 |
|
} |
| 122 |
|
$this->verifyParameterValidity($value); |
| 123 |
|
parent::set($key, $value); |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
/** |
| 127 |
|
* @param mixed $customInfo string already encoded or array of key/value to be encoded |
src/Parameter/Parameter.php 1 location
|
@@ 43-49 (lines=7) @@
|
| 40 |
|
* @param string $key |
| 41 |
|
* @param mixed $value |
| 42 |
|
*/ |
| 43 |
|
public function set($key, $value) |
| 44 |
|
{ |
| 45 |
|
if (!in_array($key, $this->parametersName, true)) { |
| 46 |
|
throw new InvalidArgumentException(sprintf('%s is not a valid parameter name.', $key)); |
| 47 |
|
} |
| 48 |
|
$this->parameters[$key] = $value; |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
/** |
| 52 |
|
* @param string $key |
src/Response/Response.php 1 location
|
@@ 48-54 (lines=7) @@
|
| 45 |
|
* @param mixed $value |
| 46 |
|
* @throws InvalidArgumentException |
| 47 |
|
*/ |
| 48 |
|
public function set($key, $value) |
| 49 |
|
{ |
| 50 |
|
if (!in_array($key, $this->parametersName, true)) { |
| 51 |
|
throw new InvalidArgumentException(sprintf('%s is not a valid parameter name.', $key)); |
| 52 |
|
} |
| 53 |
|
$this->data[$key] = $value; |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
/** |
| 57 |
|
* @param string $key |