Leankoala /
HealthFoundation
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Leankoala\HealthFoundation\Check\Basic; |
||
| 4 | |||
| 5 | use Leankoala\HealthFoundation\Check\Check; |
||
| 6 | use Leankoala\HealthFoundation\Check\Result; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * Class StaticCheck |
||
| 10 | * |
||
| 11 | * |
||
| 12 | * @author Nils Langner <[email protected]> |
||
| 13 | * created 2021-08-05 |
||
| 14 | */ |
||
| 15 | class StaticCheck implements Check |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $identifier; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $status; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 26 | |||
| 27 | public function __construct($identifier, Result $result) |
||
| 28 | { |
||
| 29 | $this->identifier = $identifier; |
||
| 30 | $this->result = $result; |
||
|
0 ignored issues
–
show
|
|||
| 31 | } |
||
| 32 | |||
| 33 | public function run() |
||
| 34 | { |
||
| 35 | return $this->result; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getIdentifier() |
||
| 39 | { |
||
| 40 | return $this->identifier; |
||
| 41 | } |
||
| 42 | } |
||
| 43 |