Search by

xchert / encapsulation-accessor

Accessors to use xchert/encapsulation in combination with xchert/property-access

Maintainers

Package info

github.com/x-chert/encapsulation-accessor

pkg:composer/xchert/encapsulation-accessor

Transparency log

Statistics

Installs: 114

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.2 2026-08-26 07:37 UTC

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.