Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
WrongTokenException
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getStatusCode
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2namespace Apie\Common\ContextBuilders\Exceptions;
3
4use Apie\Core\Exceptions\ApieException;
5use Apie\Core\Exceptions\HttpStatusCodeException;
6use Throwable;
7
8final class WrongTokenException extends ApieException implements HttpStatusCodeException
9{
10    public function __construct(?Throwable $previous)
11    {
12        parent::__construct('Session cookie could not be decrypted', 0, $previous);
13    }
14
15    public function getStatusCode(): int
16    {
17        return 401;
18    }
19}