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
ABSTRACT
public
mixed
ABSTRACT
= 16
FINAL
public
mixed
FINAL
= 32
PRIVATE
public
mixed
PRIVATE
= 4
PRIVATE_SET
public
mixed
PRIVATE_SET
= 512
PROTECTED
public
mixed
PROTECTED
= 2
PROTECTED_SET
public
mixed
PROTECTED_SET
= 256
PUBLIC
public
mixed
PUBLIC
= 1
PUBLIC_SET
public
mixed
PUBLIC_SET
= 128
READONLY
public
mixed
READONLY
= 64
STATIC
public
mixed
STATIC
= 8
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
stringisValidModifier()
private
static isValidModifier(int $modifier) : bool
Parameters
- $modifier : int