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
ProbeStatus 100.00% 1 / 1 100.00% 1 / 1 1 100.00% 1 / 1
 isHealthy 100.00% 1 / 1 100.00% 1 / 1 1
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Runtime\Health;
6
7enum ProbeStatus: string
8{
9    case Alive = 'alive';
10    case Ready = 'ready';
11    case NotReady = 'not_ready';
12
13    public function isHealthy(): bool
14    {
15        return $this !== self::NotReady;
16    }
17}