Quantcast
Channel: pjdietz
Viewing all articles
Browse latest Browse all 10

Automatic Properties in PHP

$
0
0
Make PHP properties easily and automatically by providing magic methods (_get, _set, _unset, and _unset) that look for accessor methods with names matching a given pattern. Want to have a property name that is readable and writable? Add the methods getName() and setName() to your class. If you’d like it to be read only, supply [...]

Viewing all articles
Browse latest Browse all 10

Trending Articles