static-constructors

PhpStyleConstructorPolicy
in package
implements StaticConstructorClassPolicy

FinalYes

Class policy for classes which define a static constructor with the `__constructStatic()` magic method.

Table of Contents

Interfaces

StaticConstructorClassPolicy
Interface defining requirements for static constructor class policies.

Constants

CONSTRUCTOR_METHOD_NAME  = '__constructStatic'

Methods

methodFor()  : ReflectionMethod|null
Retrieve the reflection information for a method named `__constructStatic` if it exists.

Constants

Methods

methodFor()

Retrieve the reflection information for a method named `__constructStatic` if it exists.

public static methodFor(ReflectionClass $class) : ReflectionMethod|null
Parameters
$class : ReflectionClass
Return values
ReflectionMethod|null

        
On this page

Search results