Documentation

PropertyInitializableExtractorInterface

Guesses if the property can be initialized through the constructor.

Tags
author

Kévin Dunglas dunglas@gmail.com

Table of Contents

Methods

isInitializable()  : bool|null
Is the property initializable? Returns true if a constructor's parameter matches the given property name.

Methods

isInitializable()

Is the property initializable? Returns true if a constructor's parameter matches the given property name.

public isInitializable(string $class, string $property[, array<string|int, mixed> $context = [] ]) : bool|null
Parameters
$class : string
$property : string
$context : array<string|int, mixed> = []
Return values
bool|null

        
On this page

Search results