$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); } } /** * Try to obtain an iniciated engine instance * * @return \Phacil\Framework\Registry * @since 2.0.0 */ static public function getInstance() { return \Phacil\Framework\startEngineExacTI::getRegistry(); } }