public function __call($method, $parameter)
{
if (substr($method, 0, 3) === 'set') {
$this->parameters[substr($method, 3)] = array_shift($parameter);
return $this;
}
if (substr($method, 0, 3) === 'get') {
$key = substr($method, 3);
return isset($this->parameters[$key]) ? $this->parameters[$key] : null;
}
throw new \BadFunctionCallException(sprintf('The function "%s" does not exist!', $method));
}