| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | 1 | public static function fromAmazonRequest(array $amazonRequest): AbstractRequest |
|
| 37 | { |
||
| 38 | 1 | return new self( |
|
| 39 | 1 | timestamp: self::getTime(PropertyHelper::checkNullValueStringOrInt($amazonRequest, 'timestamp')), |
|
| 40 | 1 | token: PropertyHelper::checkNullValueString($amazonRequest, 'token'), |
|
| 41 | 1 | requestId: PropertyHelper::checkNullValueString($amazonRequest, 'requestId'), |
|
| 42 | 1 | locale: PropertyHelper::checkNullValueString($amazonRequest, 'locale'), |
|
| 43 | 1 | ); |
|
| 46 |