static-constructors

SameNameAsClassPolicy
in package
implements StaticConstructorClassPolicy

FinalYes

Class policy for classes which define a static constructor with the same name as the class.

Table of Contents

Interfaces

StaticConstructorClassPolicy
Interface defining requirements for static constructor class policies.

Methods

methodFor()  : ReflectionMethod|null
Retrieve the reflection information for a method with the same name as the class if it exists.

Methods

methodFor()

Retrieve the reflection information for a method with the same name as the class if it exists.

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

        
On this page

Search results