Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
RangeMismatchException
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2namespace Apie\Core\Exceptions;
3
4use Apie\Core\ValueObjects\Utils;
5
6final class RangeMismatchException extends ApieException
7{
8    public function __construct(mixed $first, mixed $second)
9    {
10        parent::__construct(
11            sprintf(
12                '%s is higher than %s',
13                Utils::displayMixedAsString($first),
14                Utils::displayMixedAsString($second)
15            )
16        );
17    }
18}