src/Payline/PaylineSDK.php
public function addPrivateData(array $array)
    {
        $private = new PrivateData();
        if ($array) {
            foreach ($array as $k => $v) {
                if (array_key_exists($k, $private) && (strlen($v))) {
                    $private->$k = $v;
                }
            }
        }
        $this->privateData[] = new \SoapVar($private, SOAP_ENC_OBJECT, self::SOAP_PRIVATE_DATA, self::PAYLINE_NAMESPACE);
    }
public function addPrivateData(array $array)
    {
        $private = new PrivateData();
        if ($array) {
            foreach ($array as $k => $v) {
                if (array_key_exists($k, $private) && (strlen($v))) {
                    $private->$k = $v;
                }
            }
        }
        $this->privateData[] = new \SoapVar($private, SOAP_ENC_OBJECT, self::SOAP_PRIVATE_DATA, self::PAYLINE_NAMESPACE);
    }
public function addPrivateData ( array $ array ) { $ private = new PrivateData ( ) ; if ( $ array ) { foreach ( $ array as $ k => $ v ) { if ( array_key_exists ( $ k , $ private ) && ( strlen ( $ v ) ) ) { $ private -> $ k = $ v ; } } } $ this -> privateData [ ] = new \ SoapVar ( $ private , SOAP_ENC_OBJECT , self :: SOAP_PRIVATE_DATA , self :: PAYLINE_NAMESPACE ) ; }
Adds a privateData element

@param array $array
an array containing two indexes : key and value
Adds a privateData element