| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function __construct(ServerRequestInterface $request, array $options = []) |
||
| 47 | { |
||
| 48 | $this->request = $request; |
||
| 49 | $this->cookieName = trim((string) ($options['cookieName'] ?? self::DEFAULT_OPTIONS['cookieName'])); |
||
| 50 | if ($this->cookieName === '') { |
||
| 51 | throw new \InvalidArgumentException('cookieName option parameter cannot be empty'); |
||
| 52 | } |
||
| 53 | } |
||
| 54 | |||
| 89 |