Library/ClassProperty.php
public function getVisibilityAccessor()
    {
        $modifiers = [];

        foreach ($this->visibility as $visibility) {
            switch ($visibility) {
                case 'protected':
                    $modifiers['ZEND_ACC_PROTECTED'] = true;
                    break;

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

                case 'public':
                    $modifiers['ZEND_ACC_PUBLIC'] = true;
                    break;

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

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

        return implode('|', array_keys($modifiers));
    }
public function getVisibilityAccessor()
    {
        $modifiers = [];

        foreach ($this->visibility as $visibility) {
            switch ($visibility) {
                case 'protected':
                    $modifiers['ZEND_ACC_PROTECTED'] = true;
                    break;

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

                case 'public':
                    $modifiers['ZEND_ACC_PUBLIC'] = true;
                    break;

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

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

        return implode('|', array_keys($modifiers));
    }
public function getVisibilityAccessor ( ) { $ modifiers = [ ] ; foreach ( $ this -> visibility as $ visibility ) { switch ( $ visibility ) { case 'protected' : $ modifiers [ 'ZEND_ACC_PROTECTED' ] = true ; break ; case 'private' : $ modifiers [ 'ZEND_ACC_PRIVATE' ] = true ; break ; case 'public' : $ modifiers [ 'ZEND_ACC_PUBLIC' ] = true ; break ; case 'static' : $ modifiers [ 'ZEND_ACC_STATIC' ] = true ; break ; default : throw new Exception ( 'Unknown modifier ' . $ visibility ) ; } } return implode ( '|' , array_keys ( $ modifiers ) ) ; }
Returns the C-visibility accessors for the model.

@throws Exception

@return string
Returns the C - visibility accessors for the model .