Download the PHP package avantar/readable-only-properties without Composer
On this page you can find all versions of the php package avantar/readable-only-properties. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download avantar/readable-only-properties
More information about avantar/readable-only-properties
Files in avantar/readable-only-properties
Download avantar/readable-only-properties
More information about avantar/readable-only-properties
Files in avantar/readable-only-properties
Vendor avantar
Package readable-only-properties
Short Description A little trait which blocks class properties setters.
License MIT
Package readable-only-properties
Short Description A little trait which blocks class properties setters.
License MIT
Please rate this library. Is it a good library?
Informations about the package readable-only-properties
readable-only-properties
A little trait which blocks class properties setters.
How to use
Declare use of ReadableOnlyProperties
trait in your class definition.
After creating a new instance of the User class, you can directly access to its private properties.
It will result in printing out Chris
string. But when You try to set new value for either name or age property:
An exception will be thrown:
All versions of readable-only-properties with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5
The package avantar/readable-only-properties contains the following files
Loading the files please wait ....