File.php
protected function getEncapsulationType(&$variable, &$priority, &$static)
    {
        $static = NULL;

        if( preg_match('/^((?<type>public|protected|private)(?<access>\sstatic)*\:)/', $variable, $match) )
        {
            $priority = $match['type'];
            $static   = $match['access'] ?? $static;
            $variable = str_ireplace($match[1], NULL, $variable);
        }
        else
        {
            $priority = 'public';
        }
    }
protected function getEncapsulationType(&$variable, &$priority, &$static)
    {
        $static = NULL;

        if( preg_match('/^((?<type>public|protected|private)(?<access>\sstatic)*\:)/', $variable, $match) )
        {
            $priority = $match['type'];
            $static   = $match['access'] ?? $static;
            $variable = str_ireplace($match[1], NULL, $variable);
        }
        else
        {
            $priority = 'public';
        }
    }
protected function getEncapsulationType ( & $ variable , & $ priority , & $ static ) { $ static = NULL ; if ( preg_match ( '/^((?<type>public|protected|private)(?<access>\sstatic)*\:)/' , $ variable , $ match ) ) { $ priority = $ match [ 'type' ] ; $ static = $ match [ 'access' ] ?? $ static ; $ variable = str_ireplace ( $ match [ 1 ] , NULL , $ variable ) ; } else { $ priority = 'public' ; } }
Protected get encapsulation type
Protected get encapsulation type