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
Interfaces, Classes, Traits and Enums
Table of Contents
- $propertyType : string
- __construct() : mixed
- matches() : bool
Properties
$propertyType
private
string
$propertyType
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