for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of Symplify
* Copyright (c) 2016 Tomas Votruba (http://tomasvotruba.cz).
*/
namespace Symplify\PHP7_Sculpin\Configuration;
use Nette\Neon\Neon;
use SplFileInfo;
final class Configuration
{
/**
* @var array
private $options = [];
* @param SplFileInfo[] $files
public function loadOptionsFromFiles(array $files)
foreach ($files as $file) {
$fileContent = file_get_contents($file->getRealPath());
$this->options += Neon::decode($fileContent);
}
* @param string $name
* @param string|array $value
public function addOption(string $name, $value)
$this->options[$name] = $value;
public function getOptions() : array
return $this->options;