/** * Construct a new instance of OrderByNode * * @param string $propertyName Name of the property corrosponds * to the sub path * segment represented by * this node, this parameter * will be null if this * node is root. * @param ResourceProperty $resourceProperty Resource property corrosponds * to the sub path * segment represented by this * node, this parameter * will be null if * this node is root. * @param ResourceSetWrapper $resourceSetWrapper The resource set wrapper * associated with the sub path * segment represented by this * node, this will be null * if this node represents a * complex sub path segment */ public function __construct($propertyName, $resourceProperty, $resourceSetWrapper) { // This must be the parameter state at this point, we won't chek // these as this is an internal class //if ($resourceProperty != NULL) //{ // Node represents navigation or complex // if ($resourceProperty::Kind == Complex) // assert($resourceSetWrapper == null); // else if ($resourceProperty::Kind == ResourceReference) // assert($resourceSetWrapper !== null); //} else { // Node represents root // assert($resourceSetWrapper != null) //} parent::__construct($propertyName, $resourceProperty); $this->_resourceSetWrapper = $resourceSetWrapper; }
/** * Constructs new instance of OrderByLeafNode * * @param string $propertyName Name of the property * corrosponds to the * sub path segment represented * by this node. * @param ResourceProperty $resourceProperty Resource property corrosponds * to the sub path * segment represented by this node. * @param boolean $isAscending The order of sorting to be * performed, true for * ascending order and false * for descending order. */ public function __construct($propertyName, ResourceProperty $resourceProperty, $isAscending) { parent::__construct($propertyName, $resourceProperty); $this->_isAscending = $isAscending; }