for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hairmare\Dodat;
use Symfony\Component\Yaml\Yaml;
class Load
{
/**
* @var array
*/
private $data;
public static function fromFile($file)
return new Load(file_get_contents($file));
}
* @param string $json
public function __construct($json)
$data = Yaml::parse($json);
if (!is_array($data)) {
throw new \RuntimeException('Found non array data in .travis.yml');
$this->data = $data;
* @return string[]
public function getScripts()
return $this->data['script'];