public function _get_magic_const($name) { $name = $this->normalizeMagicConst($name); if (isset($this->definitions['magic_constants'][$name])) { $magic_constant = $this->definitions['magic_constants'][$name]; if (is_callable($magic_constant)) { return call_user_func_array($magic_constant, [$this]); } return $magic_constant; } return null; }