Pinq\Queries\Segments\Ordering::__construct PHP Method

__construct() public method

public __construct ( ElementProjection $projectionFunction, $isAscendingId )
$projectionFunction Pinq\Queries\Functions\ElementProjection
    public function __construct(Functions\ElementProjection $projectionFunction, $isAscendingId)
    {
        $this->projectionFunction = $projectionFunction;
        $this->isAscendingId = $isAscendingId;
    }

Usage Example

 public function __construct(Functions\ElementProjection $projectionFunction, $isAscending)
 {
     parent::__construct($projectionFunction, '');
     $this->isAscending = $isAscending;
 }