fresh/src/Configuration/LocalConfiguration.php

21 lines
364 B
PHP
Raw Normal View History

2022-03-07 21:45:54 +00:00
<?php
namespace NoccyLabs\FreshDocker\Configuration;
use Symfony\Component\Yaml\Yaml;
class LocalConfiguration
{
private array $config = [];
public function __construct(string $configfile)
{
$this->config = Yaml::parseFile($configfile);
}
public function getChecks(): array
{
return $this->config['check']??[];
}
}