for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WebComplete\mvc;
class ApplicationConfig implements \ArrayAccess
{
/**
* @var array
*/
private $config;
* @param array $config
public function __construct(array $config)
$this->config = $config;
}
* @return array
public function getData(): array
return $this->config;
* @param mixed $offset
*
* @return bool
public function offsetExists($offset): bool
return isset($this->config[$offset]);
* @return mixed|null
public function offsetGet($offset)
return $this->config[$offset] ?? null;
* @param mixed $value
public function offsetSet($offset, $value)
$this->config[$offset] = $value;
public function offsetUnset($offset)
unset($this->config[$offset]);