mixed) */ protected $properties = array( "format" => "default", "validator" => null ); /** * Property set access. * * @param string $propertyName * @param string $propertyValue * @ignore * @return void */ public function __set( $propertyName, $propertyValue ) { switch ( $propertyName ) { case "format": if ( is_string( $propertyValue ) === false || strlen( $propertyValue ) < 1 ) { throw new ezcBaseValueException( $propertyName, $propertyValue, "string, length > 0" ); } break; case "validator": if ( ( $propertyValue instanceof ezcConsoleDialogValidator ) === false ) { throw new ezcBaseValueException( $propertyName, $propertyValue, "ezcConsoleDialogValidator" ); } break; default: throw new ezcBasePropertyNotFoundException( $propertyName ); } $this->properties[$propertyName] = $propertyValue; } } ?>