1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace WyriHaximus\AsyncTestUtilities; |
||
6 | |||
7 | use Attribute; |
||
8 | use WyriHaximus\React\PHPUnit\TimeOutInterface; |
||
9 | |||
10 | #[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS)] |
||
11 | final readonly class TimeOut implements TimeOutInterface |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
12 | { |
||
13 | public function __construct( |
||
14 | public int|float $timeout, |
||
15 | ) { |
||
16 | } |
||
17 | |||
18 | public function timeout(): int|float |
||
19 | { |
||
20 | return $this->timeout; |
||
21 | } |
||
22 | } |
||
23 |