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