Habari\RewriteRule::__get PHP Метод

__get() публичный Метод

Magic property getter for this class
public __get ( string $name ) : mixed
$name string The name of the class property to return
Результат mixed The value of that field in this object
    public function __get($name)
    {
        switch ($name) {
            case 'named_args':
                if (empty($this->m_named_args)) {
                    preg_match_all('/(?<!\\()\\{\\$(\\w+?)\\}(?!\\))/u', $this->build_str, $required);
                    preg_match_all('/(?<=\\()[^\\(\\)]*\\{\\$(\\w+?)\\}[^\\(\\)]*(?=\\))/u', $this->build_str, $optional);
                    $this->m_named_args['required'] = $required[1];
                    $this->m_named_args['optional'] = $optional[1];
                }
                return $this->m_named_args;
            default:
                return parent::__get($name);
        }
    }