mixed) */ protected $properties = array( 'stackTrace' => false, 'stackTraceDepth' => 5, ); /** * Property write access. * * @param string $propertyName Name of the property. * @param mixed $propertyValue The value for the property. * * @throws ezcBasePropertyPermissionException * If the property you try to access is read-only. * @throws ezcBasePropertyNotFoundException * If the the desired property is not found. * @ignore */ public function __set( $propertyName, $propertyValue ) { switch ( $propertyName ) { case 'stackTrace': if ( !is_bool( $propertyValue ) ) { throw new ezcBaseValueException( $propertyName, $propertyValue, 'bool' ); } break; case 'stackTraceDepth': if ( !is_int( $propertyValue ) || $propertyValue < 0 ) { throw new ezcBaseValueException( $propertyName, $propertyValue, 'int >= 0' ); } break; default: ezcBasePropertyNotFoundException( $propertyName ); } $this->properties[$propertyName] = $propertyValue; } } ?>