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