src/icepay_api_webservice.php
protected function clean($obj)
    {
        $methods = array();

        foreach ($this->forceArray($obj->GetMyPaymentMethodsResult->PaymentMethods->PaymentMethod) as $value) {
            array_push($methods, array(
                'PaymentMethodCode' => $value->PaymentMethodCode,
                'Description' => $value->Description,
                'Issuers' => $this->convertIssuers($this->forceArray($value->Issuers->Issuer))
                    )
            );
        };
        return $methods;
    }
protected function clean($obj)
    {
        $methods = array();

        foreach ($this->forceArray($obj->GetMyPaymentMethodsResult->PaymentMethods->PaymentMethod) as $value) {
            array_push($methods, array(
                'PaymentMethodCode' => $value->PaymentMethodCode,
                'Description' => $value->Description,
                'Issuers' => $this->convertIssuers($this->forceArray($value->Issuers->Issuer))
                    )
            );
        };
        return $methods;
    }
protected function clean ( $ obj ) { $ methods = array ( ) ; foreach ( $ this -> forceArray ( $ obj -> GetMyPaymentMethodsResult -> PaymentMethods -> PaymentMethod ) as $ value ) { array_push ( $ methods , array ( 'PaymentMethodCode' => $ value -> PaymentMethodCode , 'Description' => $ value -> Description , 'Issuers' => $ this -> convertIssuers ( $ this -> forceArray ( $ value -> Issuers -> Issuer ) ) ) ) ; } ; return $ methods ; }
Return clean array

@since 2.1.0
@access protected
@param object $obj
@return array
Return clean array