public function getSoapVariables($requestObject, $lowerCaseFirst = false, $keepNullProperties = true)
    {
        if (!is_object($requestObject)) {
            throw new InvalidParameterException('Parameter requestObject is not an object');
        }
        $objectName = $this->getClassNameWithoutNamespaces($requestObject);
        if ($lowerCaseFirst) {
            $objectName = lcfirst($objectName);
        }
        $stdClass = new \stdClass();
        $stdClass->$objectName = $requestObject;

        return $this->objectToArray($stdClass, $keepNullProperties);
    }
public function getSoapVariables($requestObject, $lowerCaseFirst = false, $keepNullProperties = true)
    {
        if (!is_object($requestObject)) {
            throw new InvalidParameterException('Parameter requestObject is not an object');
        }
        $objectName = $this->getClassNameWithoutNamespaces($requestObject);
        if ($lowerCaseFirst) {
            $objectName = lcfirst($objectName);
        }
        $stdClass = new \stdClass();
        $stdClass->$objectName = $requestObject;

        return $this->objectToArray($stdClass, $keepNullProperties);
    }
public function getSoapVariables ( $ requestObject , $ lowerCaseFirst = false , $ keepNullProperties = true ) { if ( ! is_object ( $ requestObject ) ) { throw new InvalidParameterException ( 'Parameter requestObject is not an object' ) ; } $ objectName = $ this -> getClassNameWithoutNamespaces ( $ requestObject ) ; if ( $ lowerCaseFirst ) { $ objectName = lcfirst ( $ objectName ) ; } $ stdClass = new \ stdClass ( ) ; $ stdClass -> $ objectName = $ requestObject ; return $ this -> objectToArray ( $ stdClass , $ keepNullProperties ) ; }
Get SOAP Request Variables

Prepares request parameters to be
sent in the SOAP Request Body.

@param object $requestObject
@param boolean $lowerCaseFirst Lowercase first character of the root element name
@param boolean $keepNullProperties Keep null object properties when building the request parameters
@throws \Camcima\Exception\InvalidParameterException
@return array
Get SOAP Request Variables