src/UserRegistrationResult.php 1 location
|
@@ 33-42 (lines=10) @@
|
| 30 |
|
* |
| 31 |
|
* @param array $params |
| 32 |
|
*/ |
| 33 |
|
public function __construct(array $params) |
| 34 |
|
{ |
| 35 |
|
parent::__construct($params); |
| 36 |
|
|
| 37 |
|
$this->validateParams($params, ['tenant', 'sub']); |
| 38 |
|
|
| 39 |
|
$this->setTenant($params['tenant']); |
| 40 |
|
$this->setSub($params['sub']); |
| 41 |
|
$this->setScope($params['scope'] ?? ''); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
/** |
| 45 |
|
* @return string |
src/UserTokenVerificationResult.php 1 location
|
@@ 38-48 (lines=11) @@
|
| 35 |
|
* |
| 36 |
|
* @param array $params |
| 37 |
|
*/ |
| 38 |
|
public function __construct(array $params) |
| 39 |
|
{ |
| 40 |
|
parent::__construct($params); |
| 41 |
|
|
| 42 |
|
$this->validateParams($params, ['deviceId', 'sub', 'exp']); |
| 43 |
|
|
| 44 |
|
$this->setDeviceId($params['deviceId']); |
| 45 |
|
$this->setSub($params['sub']); |
| 46 |
|
$this->setExp($params['exp']); |
| 47 |
|
$this->setScope($params['scope'] ?? ''); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
/** |
| 51 |
|
* @return string |