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

Interfaces, Classes, Traits and Enums

Matcher

Table of Contents

$propertyType  : string
__construct()  : mixed
matches()  : bool

Properties

Methods

__construct()

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

Property type

Return values
mixed

matches()

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

Search results