| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Session |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param bool|null $new Whether this is a new session |
||
| 13 | * @param string|null $sessionId Session identifier |
||
| 14 | * @param Application|null $application Application information |
||
| 15 | * @param array $attributes Session attributes |
||
| 16 | * @param User|null $user User information |
||
| 17 | */ |
||
| 18 | 23 | public function __construct( |
|
| 19 | public ?bool $new = null, |
||
| 20 | public ?string $sessionId = null, |
||
| 21 | public ?Application $application = null, |
||
| 22 | public array $attributes = [], |
||
| 23 | public ?User $user = null, |
||
| 24 | ) { |
||
| 25 | 23 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param array $amazonRequest |
||
| 29 | * |
||
| 30 | * @return Session |
||
| 31 | */ |
||
| 32 | 20 | public static function fromAmazonRequest(array $amazonRequest): self |
|
| 40 | 20 | ); |
|
| 41 | } |
||
| 43 |