for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of cloak.
*
* (c) Noritaka Horio <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace cloak\configuration;
use Zend\Config\Config;
* Class AbstractNode
* @package cloak\configuration
abstract class AbstractSection implements Section
{
* @var Config
protected $values;
* @param array $values
public function __construct(array $values = [])
$this->values = new Config($values);
}
* @param string $key
* @param mixed $defaultValue
* @return mixed
public function getValue($key, $defaultValue)
return $this->values->get($key, $defaultValue);
* @return Config
public function getValues()
return $this->values;