private function addPayment($order, $payment)
    {
        if ($this->compareStore($payment) && $this->hasOrder($order) && $this->compareStatus($order, $payment)){
            array_push($this->_arrayPayments, $this->build($payment, $order));
            return true;
        }
        return false;
    }
private function addPayment($order, $payment)
    {
        if ($this->compareStore($payment) && $this->hasOrder($order) && $this->compareStatus($order, $payment)){
            array_push($this->_arrayPayments, $this->build($payment, $order));
            return true;
        }
        return false;
    }
private function addPayment ( $ order , $ payment ) { if ( $ this -> compareStore ( $ payment ) && $ this -> hasOrder ( $ order ) && $ this -> compareStatus ( $ order , $ payment ) ) { array_push ( $ this -> _arrayPayments , $ this -> build ( $ payment , $ order ) ) ; return true ; } return false ; }
Add a needle conciliate payment to a list

@param $order
@param $payment
@return bool
Add a needle conciliate payment to a list