test_options.php 438 B

123456789101112131415161718
  1. <?php
  2. class ezcBaseTestOptions extends ezcBaseOptions
  3. {
  4. protected $properties = array( "foo" => "bar", "baz" => "blah" );
  5. public function __set( $propertyName, $propertyValue )
  6. {
  7. if ( $this->__isset( $propertyName ) )
  8. {
  9. $this->properties[$propertyName] = $propertyValue;
  10. }
  11. else
  12. {
  13. throw new ezcBasePropertyNotFoundException( $propertyName );
  14. }
  15. }
  16. }
  17. ?>