/php-role-proxy

Primary LanguagePHPMIT LicenseMIT

#RoleProxy

coding exercise

##Concept

Here, an entity is a POPO with public properties. In the provided examples a User (having name and password public properties) is proxied through instances of Role\User\Friend and Role\User\Myself respectively.

A User as a Friend allows read access to name and no write access.

A User as a Myself allows read access to both name and password and write access to both name and password.