public function get(): array
    {
        $result = [];

        $filter = $this->jory->getFilter();
        if ($filter !== null) {
            $result[$this->keyRepository->get('flt')] = $this->getFilterArray($filter);
        }
        $sorts = $this->jory->getSorts();
        if (!empty($sorts)) {
            $result[$this->keyRepository->get('srt')] = $this->getSortsArray($sorts);
        }
        $relations = $this->jory->getRelations();
        if (!empty($relations)) {
            $result[$this->keyRepository->get('rlt')] = $this->getRelationsArray($relations);
        }
        if ($this->jory->getOffset() !== null) {
            $result[$this->keyRepository->get('ofs')] = $this->jory->getOffset();
        }
        if ($this->jory->getLimit() !== null) {
            $result[$this->keyRepository->get('lmt')] = $this->jory->getLimit();
        }
        if ($this->jory->getFields() !== null) {
            $result[$this->keyRepository->get('fld')] = $this->jory->getFields();
        }

        return $result;
    }
public function get(): array
    {
        $result = [];

        $filter = $this->jory->getFilter();
        if ($filter !== null) {
            $result[$this->keyRepository->get('flt')] = $this->getFilterArray($filter);
        }
        $sorts = $this->jory->getSorts();
        if (!empty($sorts)) {
            $result[$this->keyRepository->get('srt')] = $this->getSortsArray($sorts);
        }
        $relations = $this->jory->getRelations();
        if (!empty($relations)) {
            $result[$this->keyRepository->get('rlt')] = $this->getRelationsArray($relations);
        }
        if ($this->jory->getOffset() !== null) {
            $result[$this->keyRepository->get('ofs')] = $this->jory->getOffset();
        }
        if ($this->jory->getLimit() !== null) {
            $result[$this->keyRepository->get('lmt')] = $this->jory->getLimit();
        }
        if ($this->jory->getFields() !== null) {
            $result[$this->keyRepository->get('fld')] = $this->jory->getFields();
        }

        return $result;
    }
public function get ( ) : array { $ result = [ ] ; $ filter = $ this -> jory -> getFilter ( ) ; if ( $ filter !== null ) { $ result [ $ this -> keyRepository -> get ( 'flt' ) ] = $ this -> getFilterArray ( $ filter ) ; } $ sorts = $ this -> jory -> getSorts ( ) ; if ( ! empty ( $ sorts ) ) { $ result [ $ this -> keyRepository -> get ( 'srt' ) ] = $ this -> getSortsArray ( $ sorts ) ; } $ relations = $ this -> jory -> getRelations ( ) ; if ( ! empty ( $ relations ) ) { $ result [ $ this -> keyRepository -> get ( 'rlt' ) ] = $ this -> getRelationsArray ( $ relations ) ; } if ( $ this -> jory -> getOffset ( ) !== null ) { $ result [ $ this -> keyRepository -> get ( 'ofs' ) ] = $ this -> jory -> getOffset ( ) ; } if ( $ this -> jory -> getLimit ( ) !== null ) { $ result [ $ this -> keyRepository -> get ( 'lmt' ) ] = $ this -> jory -> getLimit ( ) ; } if ( $ this -> jory -> getFields ( ) !== null ) { $ result [ $ this -> keyRepository -> get ( 'fld' ) ] = $ this -> jory -> getFields ( ) ; } return $ result ; }
Get the array based on given Jory object.

@return array
Get the array based on given Jory object .