build Authorization instance from $array and make SoapVar object for authorization

@param array $array
the array keys are listed in Authorization CLASS.
@return SoapVar representation of Authorization instance
507720
protected function authorization(array $array)
    {
        $authorization = new Authorization($array);
        if ($array) {
            foreach ($array as $k => $v) {
                if (array_key_exists($k, $authorization) && (strlen($v))) {
                    $authorization->$k = $v;
                }
            }
        }
        return new \SoapVar($authorization, SOAP_ENC_OBJECT, self::SOAP_AUTHORIZATION, self::PAYLINE_NAMESPACE);
    }
252198
public static function fromArray($array)
    {
        $isRemote     = isset($array['remote']) || isset($array['remote_value']);
        $isRemoteProp = $isRemote && !isset($array['remote_value']);

        if ($isRemote) {
            if ($isRemoteProp) {
                $value = $array['remote'];
            } else {
                $value = $array['remote_value'];
            }
            $property = $array['local'];
        } else {
            $value    = $array['value'];
            $property = $array['property'];
        }

        if (!(isset($value, $property))) {
            throw new DcGeneralInvalidArgumentException('Invalid filter array provided  ' . \var_export($array, true));
        }

        return new static($property, $value, $isRemote, $isRemoteProp);
    }
202041
public function copyToArray(array &$array)
    {
        parent::copyToArray($array);

        $array['action']       = LanguageUtility::toString($this->action);
        $array['grantType']    = LanguageUtility::toString($this->grantType);
        $array['clientId']     = $this->clientId;
        $array['subject']      = $this->subject;
        $array['scopes']       = $this->scopes;
        $array['accessToken']  = $this->accessToken;
        $array['tokenType']    = $this->tokenType;
        $array['expiresIn']    = LanguageUtility::orZero($this->expiresIn);
        $array['expiresAt']    = LanguageUtility::orZero($this->expiresAt);
        $array['refreshToken'] = $this->refreshToken;
        $array['properties']   = LanguageUtility::convertArrayOfArrayCopyableToArray($this->properties);
    }
1268883
private function camelizeKeys(array $array)
    {
        $camelized = array();

        foreach ($array as $key => $value) {
            $camelized[$this->camelize($key)] = is_array($value)
                ? $this->camelizeKeys($value)
                : $value;
        }

        return $camelized;
    }
59921
static public function fromArray(array $array)
    {
        $name      = $array['name'];
        $value     = $array['value'];
        $path      = isset($array['path']) ? $array['path'] : null;
        $domain    = isset($array['domain']) ? $array['domain'] : null;
        $isSecure  = isset($array['secure']) ? $array['secure'] : null;
        $expiry    = isset($array['expiry']) ? \DateTime::createFromFormat('U', $array['expiry']) : null;

        if (false === $expiry) {
            throw new \InvalidArgumentException(sprintf('Unable to parse cookie expiry: "%s".', $array['expiry']));
        }

        return new self($name, $value, $path, $domain, $isSecure, $expiry);
    }
1202589
protected function createArrayType($array)
    {
        $type = new ArrayAccessType;

        foreach ($array as $key=>$value) {
            $type[$key] = $this->toType($value);
        }

        return $type;
    }
1176281
public function copyToArray(array &$array)
    {
        parent::copyToArray($array);

        $array['action']                = LanguageUtility::toString($this->action);
        $array['responseContent']       = $this->responseContent;
        $array['accessToken']           = $this->accessToken;
        $array['accessTokenExpiresAt']  = LanguageUtility::orZero($this->accessTokenExpiresAt);
        $array['accessTokenDuration']   = LanguageUtility::orZero($this->accessTokenDuration);
        $array['refreshToken']          = $this->refreshToken;
        $array['refreshTokenExpiresAt'] = LanguageUtility::orZero($this->refreshTokenExpiresAt);
        $array['refreshTokenDuration']  = LanguageUtility::orZero($this->refreshTokenDuration);
        $array['clientId']              = $this->clientId;
        $array['clientIdAlias']         = $this->clientIdAlias;
        $array['subject']               = $this->subject;
        $array['scopes']                = $this->scopes;
        $array['properties']            = LanguageUtility::convertArrayOfArrayCopyableToArray($this->properties);
    }
908702
public function copyFromArray(array &$array)
    {
        // token
        $this->setToken(
            LanguageUtility::getFromArray('token', $array));

        // scopes
        $this->setScopes(
            LanguageUtility::getFromArray('scopes', $array));

        // subject
        $this->setSubject(
            LanguageUtility::getFromArray('subject', $array));

        // clientCertificate
        $this->setClientCertificate(
            LanguageUtility::getFromArray('clientCertificate', $array));
    }
1069953
public function copyToArray(array &$array)
    {
        parent::copyToArray($array);

        $array['serviceApiKey']       = $this->serviceApiKey;
        $array['clientId']            = $this->clientId;
        $array['subject']             = $this->subject;
        $array['latestGrantedScopes'] = $this->latestGrantedScopes;
        $array['mergedGrantedScopes'] = $this->mergedGrantedScopes;
        $array['modifiedAt']          = LanguageUtility::orZero($this->modifiedAt);
    }
18408
function fromArray($array) {
		if (!is_array($array) && !is_object($array)) {
			throw new RuntimeException('Argument must be array or object');
		}
		foreach ($array as $column => &$v) {
			if (
				is_string($column) === false
				|| !isset(static::$_columns[$column])
			) {
				continue;
			}
			$this->{'set' . $column}($v);
		}
		return $this;
	}
878099
protected function addressOwner(array $array)
    {
        $addressOwner = new AddressOwner();
        if ($array) {
            foreach ($array as $k => $v) {
                if (array_key_exists($k, $addressOwner) && (strlen($v))) {
                    $addressOwner->$k = $v;
                }
            }
        }
        return new \SoapVar($addressOwner, SOAP_ENC_OBJECT, self::SOAP_ADDRESS_OWNER, self::PAYLINE_NAMESPACE);
    }
1314728
public function copyFromArray(array &$array)
    {
        // sns
        $this->setSns(
            Sns::valueOf(
                LanguageUtility::getFromArray('sns', $array)));

        // apiKey
        $this->setApiKey(
            LanguageUtility::getFromArray('apiKey', $array));

        // apiSecret
        $this->setApiSecret(
            LanguageUtility::getFromArray('apiSecret', $array));
    }
411144
protected function address(array $array)
    {
        $address = new Address();
        if ($array) {
            foreach ($array as $k => $v) {
                if (array_key_exists($k, $address) && (strlen($v))) {
                    $address->$k = $v;
                }
            }
        }
        return new \SoapVar($address, SOAP_ENC_OBJECT, self::SOAP_ADDRESS, self::PAYLINE_NAMESPACE);
    }
914259
public static function writeArray($array)
    {
        $data = array();
        foreach ($array as $var=>$val) {
            if (is_array($val) && !is_object($val)) {
                $data[$var] = self::writeArray($val);
            } else {
                $data[$var] = self::writeArrayItem($val);
            }
        }
        return serialize($data);
    }
1009990
protected function paymentData(array $array)
    {
        $paymentData = new PaymentData();
        if ($array) {
            foreach ($array as $k => $v) {
                if (array_key_exists($k, $paymentData) && (strlen($v))) {
                    $paymentData->$k = $v;
                }
            }
        }
        return new \SoapVar($paymentData, SOAP_ENC_OBJECT, self::SOAP_PAYMENT_DATA, self::PAYLINE_NAMESPACE);
    }
663573
protected function doCreateObject(array $array)
    {
        $consumerFactor          = new ConsumerFactorHistory($array);
        $consumerFactor->context = json_decode($consumerFactor->context);
        $consumerFactor->factors = json_decode($consumerFactor->factors);

        return $consumerFactor;
    }
1350479
public function copyToArray(array &$array)
    {
        parent::copyToArray($array);

        $array['action']                = LanguageUtility::toString($this->action);
        $array['clientId']              = $this->clientId;
        $array['subject']               = $this->subject;
        $array['scopes']                = $this->scopes;
        $array['existent']              = $this->existent;
        $array['usable']                = $this->usable;
        $array['sufficient']            = $this->sufficient;
        $array['refreshable']           = $this->refreshable;
        $array['responseContent']       = $this->responseContent;
        $array['expiresAt']             = $this->expiresAt;
        $array['properties']            = LanguageUtility::convertArrayOfArrayCopyableToArray($this->properties);
        $array['clientIdAlias']         = $this->clientIdAlias;
        $array['clientIdAliasUsed']     = $this->clientIdAliasUsed;
        $array['certificateThumbprint'] = $this->certificateThumbprint;
    }