PHP Read-Only Public Properties


/ Published in: PHP
Save to your folder(s)

I like using public properties, as they greatly aid in API development and proper encapsulation. Here's my solution for having the ease of public variable getting without the dangers of public variable setting.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.