$key) ? $this->$key : $this->engine->checkRegistry($key)); } /** * @param string $key * @param string $value * @return void */ public function set($key, $value) { $this->$key = $value; } /** * @param string $key * @return bool */ public function has($key) { return isset($this->$key); } /** * UnSet * * Unsets registry value by key. * * @param string $key * @return void */ public function delete(string $key) { if (isset($this->$key)) { unset($this->$key); } } }