xchert / encapsulation-accessor
Accessors to use xchert/encapsulation in combination with xchert/property-access
v1.0.2
2026-08-26 07:37 UTC
Requires
- php: ^8.3
- xchert/encapsulation: ~1.0
- xchert/property-access: ~1.0
- xchert/util: ~1.0
Requires (Dev)
- phpunit/phpunit: ^13.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-08-26 07:37:52 UTC
README
This package provides accessors to use encapsulations and containers in combination with a property accessor.
Usage
use Xchert\PropertyAccess\PropertyAccessor; use Xchert\PropertyAccess\EncapsulationAccessor; use Xchert\PropertyAccess\ContainerAccessor; $propertyAccessor = new PropertyAccessor(); // Register EncapsulationAccessor for encapsulation support $propertyAccessor->registerAccessor(new EncapsulationAccessor(), EncapsulationAccessor::ID, 500); // Register ContainerAccessor for container support $propertyAccessor->registerAccessor(new ContainerAccessor(), ContainerAccessor::ID, 500);
Probably you will also register the default ObjectAccessor. Make sure to give EncapsulationAccessor and
ContainerAccessor a higher priority to be considered from the PropertyAccessor.