add getter method: http://eamann.com/tech/php-read-attributes/