Pinq\Providers\DSL\Compilation\Parameters\ParameterCollection::addId PHP Method

addId() public method

Adds a standard parameter id to the collection.
public addId ( $parameterId, Pinq\Providers\DSL\Compilation\Parameters\IParameterHasher $hasher, mixed $data = null ) : void
$parameterId
$hasher Pinq\Providers\DSL\Compilation\Parameters\IParameterHasher
$data mixed
return void
    public function addId($parameterId, IParameterHasher $hasher, $data = null)
    {
        $this->parameters[] = new StandardParameter($parameterId, $hasher, $data);
    }

Usage Example

 public function visitOrderBy(Segments\OrderBy $segment)
 {
     foreach ($segment->getOrderings() as $ordering) {
         $this->parameters->addId($ordering->getIsAscendingId(), ParameterHasher::valueType());
     }
     return parent::visitOrderBy($segment);
 }
All Usage Examples Of Pinq\Providers\DSL\Compilation\Parameters\ParameterCollection::addId