Download the PHP package piano/accessor without Composer
On this page you can find all versions of the php package piano/accessor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download piano/accessor
More information about piano/accessor
Files in piano/accessor
Download piano/accessor
More information about piano/accessor
Files in piano/accessor
Vendor piano
Package accessor
Short Description A creator of getter and setter method by using annotations!
License
Package accessor
Short Description A creator of getter and setter method by using annotations!
License
Please rate this library. Is it a good library?
Informations about the package accessor
Piano Accessor
This package allows us to create getters and setters just by using a few annotations.
Installing
Usage example
See the example:
This User class:
Is the same as this User class:
As you can see it's possible to specify the type hint or type cast when defining the @set and it's also possible to specify the type cast when defining the @get.
That's optional though.
As below:
| Setting | Getting |
|---|---|
| @set int | @get int |
| @set integer | @get integer |
| @set bool | @get bool |
| @set boolean | @get boolean |
| @set float | @get float |
| @set double | @get double |
| @set string | @get string |
| @set array | @get array |
| @set object | @get object |
For @set any other value will be treated as type hint.
All versions of accessor with dependencies
PHP Build Version
Package Version
No informations.
The package piano/accessor contains the following files
Loading the files please wait ...