Documentation

PropertyTypeMatcher
in package
implements Matcher

Matches a property by its type.

It is recommended to use TypeFilter instead, as it applies on all occurrences of given type in copied context (eg. array elements), not just on object properties.

Tags
final

Table of Contents

Interfaces

Matcher

Properties

$propertyType  : string

Methods

__construct()  : mixed
matches()  : bool

Properties

Methods

__construct()

public __construct(string $propertyType) : mixed
Parameters
$propertyType : string

Property type

matches()

public matches(mixed $object, mixed $property) : bool
Parameters
$object : mixed
$property : mixed
Return values
bool

        
On this page

Search results