protected function getWithdrawableOperations()
    {
        $toWithdrawSuccess = $this->operationManager->findByStatus(new Status(Status::TRANSFER_SUCCESS));

        $toWithdrawFailed = $this->operationManager->findByStatus(new Status(Status::WITHDRAW_FAILED));

        $toWithdrawNegative = $this->operationManager->findByStatus(new Status(Status::WITHDRAW_NEGATIVE));

        $toWithdrawBlocked = $this->operationManager->findByStatus(new Status(Status::WITHDRAW_PAYMENT_BLOCKED));

        return array_merge($toWithdrawBlocked, $toWithdrawNegative, $toWithdrawFailed, $toWithdrawSuccess);
    }
protected function getWithdrawableOperations()
    {
        $toWithdrawSuccess = $this->operationManager->findByStatus(new Status(Status::TRANSFER_SUCCESS));

        $toWithdrawFailed = $this->operationManager->findByStatus(new Status(Status::WITHDRAW_FAILED));

        $toWithdrawNegative = $this->operationManager->findByStatus(new Status(Status::WITHDRAW_NEGATIVE));

        $toWithdrawBlocked = $this->operationManager->findByStatus(new Status(Status::WITHDRAW_PAYMENT_BLOCKED));

        return array_merge($toWithdrawBlocked, $toWithdrawNegative, $toWithdrawFailed, $toWithdrawSuccess);
    }
protected function getWithdrawableOperations ( ) { $ toWithdrawSuccess = $ this -> operationManager -> findByStatus ( new Status ( Status :: TRANSFER_SUCCESS ) ) ; $ toWithdrawFailed = $ this -> operationManager -> findByStatus ( new Status ( Status :: WITHDRAW_FAILED ) ) ; $ toWithdrawNegative = $ this -> operationManager -> findByStatus ( new Status ( Status :: WITHDRAW_NEGATIVE ) ) ; $ toWithdrawBlocked = $ this -> operationManager -> findByStatus ( new Status ( Status :: WITHDRAW_PAYMENT_BLOCKED ) ) ; return array_merge ( $ toWithdrawBlocked , $ toWithdrawNegative , $ toWithdrawFailed , $ toWithdrawSuccess ) ; }
Fetch the operation to withdraw from the storage

@return OperationInterface[]
Fetch the operation to withdraw from the storage