18 lines
438 B
PHP
18 lines
438 B
PHP
|
<?php
|
||
|
class ezcBaseTestOptions extends ezcBaseOptions
|
||
|
{
|
||
|
protected $properties = array( "foo" => "bar", "baz" => "blah" );
|
||
|
|
||
|
public function __set( $propertyName, $propertyValue )
|
||
|
{
|
||
|
if ( $this->__isset( $propertyName ) )
|
||
|
{
|
||
|
$this->properties[$propertyName] = $propertyValue;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
throw new ezcBasePropertyNotFoundException( $propertyName );
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
?>
|