Set the list of supported SNSes for social login at the direct
authorization endpoint.

@param Sns[] $snses
Supported SNSes for social login at the direct authorization
endpoint.

@return Service
`$this` object.
335976
public function setSupportedSnses(array $snses = null)
    {
        ValidationUtility::ensureNullOrArrayOfType(
            '$snses', $snses, '\Authlete\Types\Sns');

        $this->supportedSnses = $snses;

        return $this;
    }
412007
public function setInis($inis)
    {
        foreach ($inis as $name => $value) {
            ini_set('session.' . $name, $value);
        }
        $this->inis = $inis + $this->inis;
        return $this;
    }
10015
public function setHeaders(array $headers = [])
    {

        $this->headers = ($headers instanceof Headers) ? $headers : new Headers((array)$headers);

        return $this;

    }
851785
public function setFilters($filters = []) {
		if ($filters) {
			foreach ($filters as $key => $value) {
				$this->setFilter($key, $value);
			}
		}

		return $this;
	}
760545
public static function setNamespaces($namespaces)
    {
        $called = get_called_class();

        if (!$namespaces instanceof PriorityQueue) {
            $namespaces = new PriorityQueue();
        }

        static::$namespaces[$called] = $namespaces;
    }
862000
public function setGranted($isGranted)
    {
        $this->isGranted = (bool) $isGranted;
        $this->skipAuthorizationChecker(true);

        return $this;
    }
649552
public function setCustomHeaders(array $headers)
    {
        foreach ($headers as $k => &$v) {
            if (strpos($v, ':') === false) {
                $v = $k.': '.$v;
            }
        }
        $this->headers = $headers;
    }
1351847
public function setSignRequests(array $signRequests): self
    {
        array_map(function (SignRequest $s) {
        }, $signRequests); // type check
        $this->signRequests = $signRequests;
        return $this;
    }
700222
public function withHeaders($headers)
    {
        if ($headers instanceof HeaderBag) {
            $headers = $headers->all();
        }

        foreach ($headers as $key => $value) {
            $this->headers->set($key, $value);
        }

        return $this;
    }
955864
protected function addCredentials(array $headers)
    {

        if (!$this->user || !$this->password) {
            return $headers;
        }

        // Check if credentials are already in headers
        foreach ($headers as $line) {
            if (stripos(trim($line),'authorization: basic') === 0) {
                return $headers;
            }
        }

        $auth = $this->user . ':' . $this->password;

        $headers[] = 'Authorization: Basic ' . base64_encode("$auth");

        return $headers;

    }
258970
public function setApiAuthType($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->api_auth_type !== $v) {
            $this->api_auth_type = $v;
            $this->modifiedColumns[] = RemoteAppPeer::API_AUTH_TYPE;
        }


        return $this;
    }
229208
protected function setSoapHeaders(array $headers)
    {
        $soapHeaderObjects = array();
        foreach ($headers as $key => $value) {
            $soapHeaderObjects[] = new \SoapHeader(self::SOAP_NAMESPACE, $key, $value);
        }

        $this->soapClient->__setSoapHeaders($soapHeaderObjects);
    }
1068097
public function set($columnFilters)
    {
        if (! is_array($columnFilters)) {
            $columnFilters = func_get_args();
        }

        $this->columnFilters = [];

        foreach ($columnFilters as $filter) {
            $this->push($filter);
        }

        return $this;
    }
409445
public function setWsdlServer($wsdlServer = NULL)
    {
        $this->wsdlServer = $wsdlServer;
        $this->debug->debug(__FUNCTION__, 'setWsdlServer: ' . json_encode($this->wsdlServer));
    }
60502
public function setDnsSearch(array $dnsSearch)
    {
        $this->dnsSearch = $dnsSearch;

        $this->hostConfig = array_merge($this->hostConfig, ['DnsSearch' => $dnsSearch]);

        return $this;
    }
989138
public function setPermissions($permissions)
    {
        if (! is_array($permissions)) {
            $permissions = [$permissions];
        }

        $this->permissions = $permissions;

        return $this;
    }
1182217
public function setHeaders($headers)
    {
        if (!empty($this->headers)) {
            $this->headers = array_merge($this->headers, $headers);
        } else {
            $this->headers = $headers;
        }
        $this->headers = array_merge($this->headers, $headers);

        if ($this->client instanceof \swoole_http_client) {
            $this->client->setHeaders($this->headers);
        }
        return $this;
    }