PHP Класс DMS\Filter\ObjectWalker

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$filterLoader DMS\Filter\Filters\Loader\FilterLoaderInterface
$object object
$reflClass ReflectionClass

Открытые методы

Метод Описание
__construct ( object $object, DMS\Filter\Filters\Loader\FilterLoaderInterface $filterLoader ) Constructor
applyFilterRule ( string $property, Rule $filterRule ) Applies a Filtering Rule to a property
applyFilterRules ( string $property, array $filterRules = [] ) Applies the selected rules to a property in the object

Приватные методы

Метод Описание
getAccessibleReflectionProperty ( string $propertyName ) : ReflectionProperty Retrieves a property from the object and makes it visible
getPropertyValue ( string $propertyName ) : mixed Retrieves the value of the property, overcoming visibility problems
setPropertyValue ( $propertyName, mixed $value ) Overrides the value of a property, overcoming visibility problems

Описание методов

__construct() публичный Метод

Constructor
public __construct ( object $object, DMS\Filter\Filters\Loader\FilterLoaderInterface $filterLoader )
$object object
$filterLoader DMS\Filter\Filters\Loader\FilterLoaderInterface

applyFilterRule() публичный Метод

Applies a Filtering Rule to a property
public applyFilterRule ( string $property, Rule $filterRule )
$property string
$filterRule DMS\Filter\Rules\Rule

applyFilterRules() публичный Метод

Applies the selected rules to a property in the object
public applyFilterRules ( string $property, array $filterRules = [] )
$property string
$filterRules array

Описание свойств

$filterLoader защищенное свойство

protected FilterLoaderInterface,DMS\Filter\Filters\Loader $filterLoader
Результат DMS\Filter\Filters\Loader\FilterLoaderInterface

$object защищенное свойство

protected object $object
Результат object

$reflClass защищенное свойство

protected ReflectionClass $reflClass
Результат ReflectionClass