PhpSpec\ServiceContainer\IndexedServiceContainer::getParam PHP Method

getParam() public method

Gets a param from the container or a default value.
public getParam ( string $id, mixed $default = null ) : mixed
$id string
$default mixed
return mixed
    public function getParam($id, $default = null)
    {
        return isset($this->parameters[$id]) ? $this->parameters[$id] : $default;
    }