MethodSuffixInterceptors
extends PropertyGenerator
in package
Property that contains the interceptor for operations to be executed after method execution
Table of Contents
- FLAG_ABSTRACT = 0x1
- FLAG_CONSTANT = 0x8
- FLAG_FINAL = 0x2
- FLAG_INTERFACE = 0x8
- FLAG_PRIVATE = 0x40
- FLAG_PROTECTED = 0x20
- FLAG_PUBLIC = 0x10
- FLAG_STATIC = 0x4
- LINE_FEED = "\n"
- Line feed to use in place of EOL
- VISIBILITY_PRIVATE = 'private'
- VISIBILITY_PROTECTED = 'protected'
- VISIBILITY_PUBLIC = 'public'
- $defaultValue : PropertyValueGenerator
- $docBlock : DocBlockGenerator|null
- $flags : int
- $indentation : int|string
- $isConst : bool
- $isSourceDirty : bool
- $name : string
- $sourceContent : string
- $omitDefaultValue : bool
- __construct() : mixed
- Constructor
- addFlag() : AbstractMemberGenerator
- fromArray() : PropertyGenerator
- Generate from array
- fromReflection() : PropertyGenerator
- generate() : string
- getDefaultValue() : PropertyValueGenerator
- getDocBlock() : DocBlockGenerator|null
- getIndentation() : string
- getName() : string
- getSourceContent() : string
- getVisibility() : string
- isAbstract() : bool
- isConst() : bool
- isFinal() : bool
- isInterface() : bool
- isSourceDirty() : bool
- isStatic() : bool
- omitDefaultValue() : PropertyGenerator
- removeDocBlock() : void
- removeFlag() : AbstractMemberGenerator
- setAbstract() : AbstractMemberGenerator
- setConst() : PropertyGenerator
- setDefaultValue() : PropertyGenerator
- setDocBlock() : AbstractMemberGenerator
- setFinal() : AbstractMemberGenerator
- setFlags() : AbstractMemberGenerator
- setIndentation() : AbstractGenerator
- setInterface() : AbstractMemberGenerator
- setName() : AbstractMemberGenerator
- setOptions() : AbstractGenerator
- setSourceContent() : AbstractGenerator
- setSourceDirty() : AbstractGenerator
- setStatic() : AbstractMemberGenerator
- setVisibility() : AbstractMemberGenerator
Constants
FLAG_ABSTRACT
public
mixed
FLAG_ABSTRACT
= 0x1
FLAG_CONSTANT
public
mixed
FLAG_CONSTANT
= 0x8
FLAG_FINAL
public
mixed
FLAG_FINAL
= 0x2
FLAG_INTERFACE
public
mixed
FLAG_INTERFACE
= 0x8
FLAG_PRIVATE
public
mixed
FLAG_PRIVATE
= 0x40
FLAG_PROTECTED
public
mixed
FLAG_PROTECTED
= 0x20
FLAG_PUBLIC
public
mixed
FLAG_PUBLIC
= 0x10
FLAG_STATIC
public
mixed
FLAG_STATIC
= 0x4
LINE_FEED
Line feed to use in place of EOL
public
mixed
LINE_FEED
= "\n"
VISIBILITY_PRIVATE
public
mixed
VISIBILITY_PRIVATE
= 'private'
VISIBILITY_PROTECTED
public
mixed
VISIBILITY_PROTECTED
= 'protected'
VISIBILITY_PUBLIC
public
mixed
VISIBILITY_PUBLIC
= 'public'
Properties
$defaultValue
protected
PropertyValueGenerator
$defaultValue
$docBlock
protected
DocBlockGenerator|null
$docBlock
$flags
protected
int
$flags
= self::FLAG_PUBLIC
$indentation
protected
int|string
$indentation
= ' '
4 spaces by default
$isConst
protected
bool
$isConst
$isSourceDirty
protected
bool
$isSourceDirty
= true
$name
protected
string
$name
$sourceContent
protected
string
$sourceContent
$omitDefaultValue
private
bool
$omitDefaultValue
= false
Methods
__construct()
Constructor
public
__construct() : mixed
Tags
Return values
mixed —addFlag()
public
addFlag(int $flag) : AbstractMemberGenerator
Parameters
- $flag : int
Return values
AbstractMemberGenerator —fromArray()
Generate from array
public
static fromArray(array<string|int, mixed> $array) : PropertyGenerator
Parameters
- $array : array<string|int, mixed>
Tags
Return values
PropertyGenerator —fromReflection()
public
static fromReflection(PropertyReflection $reflectionProperty) : PropertyGenerator
Parameters
- $reflectionProperty : PropertyReflection
Return values
PropertyGenerator —generate()
public
generate() : string
Tags
Return values
string —getDefaultValue()
public
getDefaultValue() : PropertyValueGenerator
Return values
PropertyValueGenerator —getDocBlock()
public
getDocBlock() : DocBlockGenerator|null
Return values
DocBlockGenerator|null —getIndentation()
public
getIndentation() : string
Return values
string —getName()
public
getName() : string
Return values
string —getSourceContent()
public
getSourceContent() : string
Return values
string —getVisibility()
public
getVisibility() : string
Return values
string —isAbstract()
public
isAbstract() : bool
Return values
bool —isConst()
public
isConst() : bool
Return values
bool —isFinal()
public
isFinal() : bool
Return values
bool —isInterface()
public
isInterface() : bool
Return values
bool —isSourceDirty()
public
isSourceDirty() : bool
Return values
bool —isStatic()
public
isStatic() : bool
Return values
bool —omitDefaultValue()
public
omitDefaultValue([bool $omit = true ]) : PropertyGenerator
Parameters
- $omit : bool = true
Return values
PropertyGenerator —removeDocBlock()
public
removeDocBlock() : void
Return values
void —removeFlag()
public
removeFlag(int $flag) : AbstractMemberGenerator
Parameters
- $flag : int
Return values
AbstractMemberGenerator —setAbstract()
public
setAbstract(bool $isAbstract) : AbstractMemberGenerator
Parameters
- $isAbstract : bool
Return values
AbstractMemberGenerator —setConst()
public
setConst(bool $const) : PropertyGenerator
Parameters
- $const : bool
Return values
PropertyGenerator —setDefaultValue()
public
setDefaultValue(PropertyValueGenerator|mixed $defaultValue[, string $defaultValueType = PropertyValueGenerator::TYPE_AUTO ][, string $defaultValueOutputMode = PropertyValueGenerator::OUTPUT_MULTIPLE_LINE ]) : PropertyGenerator
Parameters
- $defaultValue : PropertyValueGenerator|mixed
- $defaultValueType : string = PropertyValueGenerator::TYPE_AUTO
- $defaultValueOutputMode : string = PropertyValueGenerator::OUTPUT_MULTIPLE_LINE
Return values
PropertyGenerator —setDocBlock()
public
setDocBlock(DocBlockGenerator|string $docBlock) : AbstractMemberGenerator
Parameters
- $docBlock : DocBlockGenerator|string
Tags
Return values
AbstractMemberGenerator —setFinal()
public
setFinal(bool $isFinal) : AbstractMemberGenerator
Parameters
- $isFinal : bool
Return values
AbstractMemberGenerator —setFlags()
public
setFlags(int|array<string|int, mixed> $flags) : AbstractMemberGenerator
Parameters
- $flags : int|array<string|int, mixed>
Return values
AbstractMemberGenerator —setIndentation()
public
setIndentation(string $indentation) : AbstractGenerator
Parameters
- $indentation : string
Return values
AbstractGenerator —setInterface()
public
setInterface(bool $isInterface) : AbstractMemberGenerator
Parameters
- $isInterface : bool
Return values
AbstractMemberGenerator —setName()
public
setName(string $name) : AbstractMemberGenerator
Parameters
- $name : string
Return values
AbstractMemberGenerator —setOptions()
public
setOptions(array<string|int, mixed>|Traversable $options) : AbstractGenerator
Parameters
- $options : array<string|int, mixed>|Traversable
Tags
Return values
AbstractGenerator —setSourceContent()
public
setSourceContent(string $sourceContent) : AbstractGenerator
Parameters
- $sourceContent : string
Return values
AbstractGenerator —setSourceDirty()
public
setSourceDirty([bool $isSourceDirty = true ]) : AbstractGenerator
Parameters
- $isSourceDirty : bool = true
Return values
AbstractGenerator —setStatic()
public
setStatic(bool $isStatic) : AbstractMemberGenerator
Parameters
- $isStatic : bool
Return values
AbstractMemberGenerator —setVisibility()
public
setVisibility(string $visibility) : AbstractMemberGenerator
Parameters
- $visibility : string