Documentation

Modifiers
in package

FinalYes

Modifiers used (as a bit mask) by various flags subnodes, for example on classes, functions, properties and constants.

Table of Contents

Constants

ABSTRACT  = 16
FINAL  = 32
PRIVATE  = 4
PRIVATE_SET  = 512
PROTECTED  = 2
PROTECTED_SET  = 256
PUBLIC  = 1
PUBLIC_SET  = 128
READONLY  = 64
STATIC  = 8
VISIBILITY_MASK  = self::PUBLIC | self::PROTECTED | self::PRIVATE
VISIBILITY_SET_MASK  = self::PUBLIC_SET | self::PROTECTED_SET | self::PRIVATE_SET
TO_STRING_MAP  = [self::PUBLIC => 'public', self::PROTECTED => 'protected', self::PRIVATE => 'private', self::STATIC => 'static', self::ABSTRACT => 'abstract', self::FINAL => 'final', self::READONLY => 'readonly', self::PUBLIC_SET => 'public(set)', self::PROTECTED_SET => 'protected(set)', self::PRIVATE_SET => 'private(set)']

Methods

toString()  : string
isValidModifier()  : bool

Constants

PROTECTED_SET

public mixed PROTECTED_SET = 256

VISIBILITY_MASK

public mixed VISIBILITY_MASK = self::PUBLIC | self::PROTECTED | self::PRIVATE

VISIBILITY_SET_MASK

public mixed VISIBILITY_SET_MASK = self::PUBLIC_SET | self::PROTECTED_SET | self::PRIVATE_SET

TO_STRING_MAP

private mixed TO_STRING_MAP = [self::PUBLIC => 'public', self::PROTECTED => 'protected', self::PRIVATE => 'private', self::STATIC => 'static', self::ABSTRACT => 'abstract', self::FINAL => 'final', self::READONLY => 'readonly', self::PUBLIC_SET => 'public(set)', self::PROTECTED_SET => 'protected(set)', self::PRIVATE_SET => 'private(set)']

Methods

toString()

public static toString(int $modifier) : string
Parameters
$modifier : int
Return values
string

isValidModifier()

private static isValidModifier(int $modifier) : bool
Parameters
$modifier : int
Return values
bool

        
On this page

Search results