src/OrderVisitor.php
private function loadOrderQuery(): OrderVisitor
    {
        $logger = $this->getLogger();
        $query = new OrderQueryRequest();

        if ($wheres = $this->getDefaultWhere()) {
            $logger->debug('Added where-clause to fech orders.', ['predicates' => $wheres]);

            array_walk($wheres, function (string $where) use ($logger, $query) {
                $query->where($where);
            });
        } else {
            $logger->debug('No where-clause to fetch orders.');
        }

        $this->setOrderQuery($query);

        return $this;
    }
private function loadOrderQuery(): OrderVisitor
    {
        $logger = $this->getLogger();
        $query = new OrderQueryRequest();

        if ($wheres = $this->getDefaultWhere()) {
            $logger->debug('Added where-clause to fech orders.', ['predicates' => $wheres]);

            array_walk($wheres, function (string $where) use ($logger, $query) {
                $query->where($where);
            });
        } else {
            $logger->debug('No where-clause to fetch orders.');
        }

        $this->setOrderQuery($query);

        return $this;
    }
private function loadOrderQuery ( ) : OrderVisitor { $ logger = $ this -> getLogger ( ) ; $ query = new OrderQueryRequest ( ) ; if ( $ wheres = $ this -> getDefaultWhere ( ) ) { $ logger -> debug ( 'Added where-clause to fech orders.' , [ 'predicates' => $ wheres ] ) ; array_walk ( $ wheres , function ( string $ where ) use ( $ logger , $ query ) { $ query -> where ( $ where ) ; } ) ; } else { $ logger -> debug ( 'No where-clause to fetch orders.' ) ; } $ this -> setOrderQuery ( $ query ) ; return $ this ; }
Returns the order query request.
@return OrderVisitor
Returns the order query request .