RequireParentConstructCallRule
implements
Rule
Interfaces, Classes, Traits and Enums
- Rule
Table of Contents
-
getNodeType()
: string
-
processNode()
: array<string|int, string>
-
callsParentConstruct()
: bool
-
getParentConstructorClass()
: ReflectionClass|false
-
ignoreErrorSuppression()
: Node
getNodeType()
public
getNodeType() : string
Return values
string
—
processNode()
public
processNode(ClassMethod $node, Scope $scope) : array<string|int, string>
Parameters
-
$node
: ClassMethod
-
-
$scope
: Scope
-
Return values
array<string|int, string>
—
callsParentConstruct()
private
callsParentConstruct(Node $parserNode) : bool
Parameters
-
$parserNode
: Node
-
Return values
bool
—
getParentConstructorClass()
private
getParentConstructorClass(ReflectionClass $classReflection) : ReflectionClass|false
Parameters
-
$classReflection
: ReflectionClass
-
Return values
ReflectionClass|false
—
ignoreErrorSuppression()
private
ignoreErrorSuppression(Node $statement) : Node
Parameters
-
$statement
: Node
-
Return values
Node
—