src/Amadeus/Client/Params/AuthParams.php
protected function loadFromArray(array $params)
    {
        if (count($params) > 0) {
            $this->officeId = $params['officeId'];
            $this->originatorTypeCode = (isset($params['originatorTypeCode'])) ? $params['originatorTypeCode'] : "U";
            $this->dutyCode = (isset($params['dutyCode'])) ? $params['dutyCode'] : "SU";
            $this->userId = $params['userId'];
            $this->organizationId = (isset($params['organizationId'])) ? $params['organizationId'] : null;
            $this->passwordLength = (isset($params['passwordLength'])) ? $params['passwordLength'] : null;
            $this->passwordData = $params['passwordData'];

            if (isset($params['nonceBase'])) {
                $this->nonceBase = $params['nonceBase'];
            }
        }
    }
protected function loadFromArray(array $params)
    {
        if (count($params) > 0) {
            $this->officeId = $params['officeId'];
            $this->originatorTypeCode = (isset($params['originatorTypeCode'])) ? $params['originatorTypeCode'] : "U";
            $this->dutyCode = (isset($params['dutyCode'])) ? $params['dutyCode'] : "SU";
            $this->userId = $params['userId'];
            $this->organizationId = (isset($params['organizationId'])) ? $params['organizationId'] : null;
            $this->passwordLength = (isset($params['passwordLength'])) ? $params['passwordLength'] : null;
            $this->passwordData = $params['passwordData'];

            if (isset($params['nonceBase'])) {
                $this->nonceBase = $params['nonceBase'];
            }
        }
    }
Load parameters from an associative array

@param array $params
@return void