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 Cecil.
*
* Copyright (c) Arnaud Ligny <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cecil\Renderer;
use Cecil\Builder;
/**
* Class Config.
class Config implements \ArrayAccess
{
/** @var Builder Builder object. */
protected $builder;
/** @var \Cecil\Config */
protected $config;
/** @var string Current language. */
protected $language;
public function __construct(Builder $builder, string $language)
$this->builder = $builder;
$this->config = $this->builder->getConfig();
$this->language = $language;
}
* Implement ArrayAccess.
* @param mixed $offset
* @return bool
#[\ReturnTypeWillChange]
public function offsetExists($offset): bool
return $this->config->has($offset);
* Implements \ArrayAccess.
* @return mixed|null
public function offsetGet($offset)
return $this->config->get($offset, $this->language);
* @param mixed $value
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
public function offsetSet($offset, $value): void
public function offsetUnset($offset): void