src/Repository.php
protected function createOption($projections, $sort, $otherOptions = [])
    {
        $options = [];
        isset($projections) ? $options["projection"] = $this->castQuery($projections) : null;
        isset($sort) ? $options["sort"] = $this->castQuery($sort) : null;

        $options = array_merge($this->documentManager->getDefaultOptions(), $otherOptions, $options);
        return $options;
    }
protected function createOption($projections, $sort, $otherOptions = [])
    {
        $options = [];
        isset($projections) ? $options["projection"] = $this->castQuery($projections) : null;
        isset($sort) ? $options["sort"] = $this->castQuery($sort) : null;

        $options = array_merge($this->documentManager->getDefaultOptions(), $otherOptions, $options);
        return $options;
    }
protected function createOption ( $ projections , $ sort , $ otherOptions = [ ] ) { $ options = [ ] ; isset ( $ projections ) ? $ options [ "projection" ] = $ this -> castQuery ( $ projections ) : null ; isset ( $ sort ) ? $ options [ "sort" ] = $ this -> castQuery ( $ sort ) : null ; $ options = array_merge ( $ this -> documentManager -> getDefaultOptions ( ) , $ otherOptions , $ options ) ; return $ options ; }
Create options based on parameters

@param   array   $projections    Projection specification
@param   array   $sort           Sort specification
@param   array   $otherOptions   Other options
@return  void
Create options based on parameters