Lines 100.00% 1 / 1
Functions and Methods 100.00% 1 / 1
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
TimeException 100.00% 1 / 1 100.00% 1 / 1 1 100.00% 1 / 1
 durationNotFinite 100.00% 1 / 1 100.00% 1 / 1 1
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Contracts\Exception;
6
7/** @extends StewartException<TimeError> */
8final class TimeException extends StewartException
9{
10    public static function durationNotFinite(float $amount): self
11    {
12        return self::createForReason(TimeError::DurationNotFinite, amount: var_export($amount, true));
13    }
14}