Library/ClassMethod.php
public function getModifiers()
    {
        $modifiers = [];
        foreach ($this->visibility as $visibility) {
            switch ($visibility) {
                case 'public':
                    $modifiers['ZEND_ACC_PUBLIC'] = $visibility;
                    break;

                case 'protected':
                    $modifiers['ZEND_ACC_PROTECTED'] = $visibility;
                    break;

                case 'private':
                    $modifiers['ZEND_ACC_PRIVATE'] = $visibility;
                    break;

                case 'static':
                    $modifiers['ZEND_ACC_STATIC'] = $visibility;
                    break;

                case 'final':
                    $modifiers['ZEND_ACC_FINAL'] = $visibility;
                    break;

                case 'abstract':
                    $modifiers['ZEND_ACC_ABSTRACT'] = $visibility;
                    break;

                case 'deprecated':
                    $modifiers['ZEND_ACC_DEPRECATED'] = $visibility;
                    break;

                case 'inline':
                    break;

                case 'scoped':
                    break;

                case 'internal':
                    break;

                default:
                    throw new Exception('Unknown modifier "'.$visibility.'"');
            }
        }

        if ('__construct' == $this->name) {
            $modifiers['ZEND_ACC_CTOR'] = true;
        } else {
            if ('__destruct' == $this->name) {
                $modifiers['ZEND_ACC_DTOR'] = true;
            }
        }

        return implode('|', array_keys($modifiers));
    }
public function getModifiers()
    {
        $modifiers = [];
        foreach ($this->visibility as $visibility) {
            switch ($visibility) {
                case 'public':
                    $modifiers['ZEND_ACC_PUBLIC'] = $visibility;
                    break;

                case 'protected':
                    $modifiers['ZEND_ACC_PROTECTED'] = $visibility;
                    break;

                case 'private':
                    $modifiers['ZEND_ACC_PRIVATE'] = $visibility;
                    break;

                case 'static':
                    $modifiers['ZEND_ACC_STATIC'] = $visibility;
                    break;

                case 'final':
                    $modifiers['ZEND_ACC_FINAL'] = $visibility;
                    break;

                case 'abstract':
                    $modifiers['ZEND_ACC_ABSTRACT'] = $visibility;
                    break;

                case 'deprecated':
                    $modifiers['ZEND_ACC_DEPRECATED'] = $visibility;
                    break;

                case 'inline':
                    break;

                case 'scoped':
                    break;

                case 'internal':
                    break;

                default:
                    throw new Exception('Unknown modifier "'.$visibility.'"');
            }
        }

        if ('__construct' == $this->name) {
            $modifiers['ZEND_ACC_CTOR'] = true;
        } else {
            if ('__destruct' == $this->name) {
                $modifiers['ZEND_ACC_DTOR'] = true;
            }
        }

        return implode('|', array_keys($modifiers));
    }
public function getModifiers ( ) { $ modifiers = [ ] ; foreach ( $ this -> visibility as $ visibility ) { switch ( $ visibility ) { case 'public' : $ modifiers [ 'ZEND_ACC_PUBLIC' ] = $ visibility ; break ; case 'protected' : $ modifiers [ 'ZEND_ACC_PROTECTED' ] = $ visibility ; break ; case 'private' : $ modifiers [ 'ZEND_ACC_PRIVATE' ] = $ visibility ; break ; case 'static' : $ modifiers [ 'ZEND_ACC_STATIC' ] = $ visibility ; break ; case 'final' : $ modifiers [ 'ZEND_ACC_FINAL' ] = $ visibility ; break ; case 'abstract' : $ modifiers [ 'ZEND_ACC_ABSTRACT' ] = $ visibility ; break ; case 'deprecated' : $ modifiers [ 'ZEND_ACC_DEPRECATED' ] = $ visibility ; break ; case 'inline' : break ; case 'scoped' : break ; case 'internal' : break ; default : throw new Exception ( 'Unknown modifier "' . $ visibility . '"' ) ; } } if ( '__construct' == $ this -> name ) { $ modifiers [ 'ZEND_ACC_CTOR' ] = true ; } else { if ( '__destruct' == $ this -> name ) { $ modifiers [ 'ZEND_ACC_DTOR' ] = true ; } } return implode ( '|' , array_keys ( $ modifiers ) ) ; }
Returns the C-modifier flags.

@throws Exception

@return string
Returns the C - modifier flags .