src/JsonQueriable.php
protected function prepare()
    {
        if ($this->_isProcessed) {
            return $this;
        }

        if (count($this->_conditions) > 0) {
            $calculatedData = $this->processConditions();
            $this->_map = $this->objectToArray($calculatedData);

            $this->_conditions = [];
            $this->_node = '';
            $this->_isProcessed = true;
            return $this;
        }

        $this->_isProcessed = true;
        $this->_map = $this->objectToArray($this->getData());
        return $this;
    }
protected function prepare()
    {
        if ($this->_isProcessed) {
            return $this;
        }

        if (count($this->_conditions) > 0) {
            $calculatedData = $this->processConditions();
            $this->_map = $this->objectToArray($calculatedData);

            $this->_conditions = [];
            $this->_node = '';
            $this->_isProcessed = true;
            return $this;
        }

        $this->_isProcessed = true;
        $this->_map = $this->objectToArray($this->getData());
        return $this;
    }
protected function prepare ( ) { if ( $ this -> _isProcessed ) { return $ this ; } if ( count ( $ this -> _conditions ) > 0 ) { $ calculatedData = $ this -> processConditions ( ) ; $ this -> _map = $ this -> objectToArray ( $ calculatedData ) ; $ this -> _conditions = [ ] ; $ this -> _node = '' ; $ this -> _isProcessed = true ; return $ this ; } $ this -> _isProcessed = true ; $ this -> _map = $ this -> objectToArray ( $ this -> getData ( ) ) ; return $ this ; }
Prepare data from desire conditions

@return $this
@throws ConditionNotAllowedException
Prepare data from desire conditions