PropertyWriteInfo
in package
FinalYes
The write mutator defines how a property can be written.
Tags
Table of Contents
Constants
- TYPE_ADDER_AND_REMOVER = 'adder_and_remover'
- TYPE_CONSTRUCTOR = 'constructor'
- TYPE_METHOD = 'method'
- TYPE_NONE = 'none'
- TYPE_PROPERTY = 'property'
- VISIBILITY_PRIVATE = 'private'
- VISIBILITY_PROTECTED = 'protected'
- VISIBILITY_PUBLIC = 'public'
Properties
- $adderInfo : self|null
- $errors : array<string|int, mixed>
- $name : string|null
- $removerInfo : self|null
- $static : bool|null
- $type : string
- $visibility : string|null
Methods
- __construct() : mixed
- getAdderInfo() : self
- getErrors() : array<string|int, mixed>
- getName() : string
- getRemoverInfo() : self
- getType() : string
- getVisibility() : string
- hasErrors() : bool
- isStatic() : bool
- setAdderInfo() : void
- setErrors() : void
- setRemoverInfo() : void
Constants
TYPE_ADDER_AND_REMOVER
public
mixed
TYPE_ADDER_AND_REMOVER
= 'adder_and_remover'
TYPE_CONSTRUCTOR
public
mixed
TYPE_CONSTRUCTOR
= 'constructor'
TYPE_METHOD
public
mixed
TYPE_METHOD
= 'method'
TYPE_NONE
public
mixed
TYPE_NONE
= 'none'
TYPE_PROPERTY
public
mixed
TYPE_PROPERTY
= 'property'
VISIBILITY_PRIVATE
public
mixed
VISIBILITY_PRIVATE
= 'private'
VISIBILITY_PROTECTED
public
mixed
VISIBILITY_PROTECTED
= 'protected'
VISIBILITY_PUBLIC
public
mixed
VISIBILITY_PUBLIC
= 'public'
Properties
$adderInfo
private
self|null
$adderInfo
= null
$errors
private
array<string|int, mixed>
$errors
= []
$name read-only
private
string|null
$name
= null
$removerInfo
private
self|null
$removerInfo
= null
$static read-only
private
bool|null
$static
= null
$type read-only
private
string
$type
= self::TYPE_NONE
$visibility read-only
private
string|null
$visibility
= null
Methods
__construct()
public
__construct([string $type = self::TYPE_NONE ][, string|null $name = null ][, string|null $visibility = null ][, bool|null $static = null ]) : mixed
Parameters
- $type : string = self::TYPE_NONE
- $name : string|null = null
- $visibility : string|null = null
- $static : bool|null = null
getAdderInfo()
public
getAdderInfo() : self
Return values
selfgetErrors()
public
getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
public
getName() : string
Return values
stringgetRemoverInfo()
public
getRemoverInfo() : self
Return values
selfgetType()
public
getType() : string
Return values
stringgetVisibility()
public
getVisibility() : string
Return values
stringhasErrors()
public
hasErrors() : bool
Return values
boolisStatic()
public
isStatic() : bool
Return values
boolsetAdderInfo()
public
setAdderInfo(self $adderInfo) : void
Parameters
- $adderInfo : self
setErrors()
public
setErrors(array<string|int, mixed> $errors) : void
Parameters
- $errors : array<string|int, mixed>
setRemoverInfo()
public
setRemoverInfo(self $removerInfo) : void
Parameters
- $removerInfo : self