Example #1
0
 public function __get($prop)
 {
     // Does this property exist?
     if (array_key_exists($prop, $this->properties)) {
         return $this->properties[$prop];
     } else {
         throw ExceptionFactory::createGetUnexpectedProperty(__FILE__, __LINE__, $this, $prop);
     }
 }