mixed) */ protected $properties = array( 'colorHighlighted' => '#cc0000', 'colorNormal' => '#2e3436', 'highlightedNodes' => array(), 'workflowVariables' => array(), ); /** * Property write access. * * @param string $propertyName Name of the property. * @param mixed $propertyValue The value for the property. * * @throws ezcBasePropertyNotFoundException * If the the desired property is not found. * @ignore */ public function __set( $propertyName, $propertyValue ) { switch ( $propertyName ) { case 'colorHighlighted': case 'colorNormal': if ( !is_string( $propertyValue ) ) { throw new ezcBaseValueException( $propertyName, $propertyValue, 'string' ); } break; case 'highlightedNodes': case 'workflowVariables': if ( !is_array( $propertyValue ) ) { throw new ezcBaseValueException( $propertyName, $propertyValue, 'array' ); } break; default: throw new ezcBasePropertyNotFoundException( $propertyName ); } $this->properties[$propertyName] = $propertyValue; } } ?>