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
EntityNotModifiedException
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\Exceptions;
3
4use Apie\Core\Exceptions\ApieException;
5use Apie\Core\Exceptions\HttpStatusCodeException;
6
7final class EntityNotModifiedException extends ApieException implements HttpStatusCodeException
8{
9    public function __construct(public readonly string $etag)
10    {
11        parent::__construct('The entity has not been modified.');
12    }
13
14    public function getStatusCode(): int
15    {
16        return 304;
17    }
18}