src/Server/Configuration/ServerConfiguration.php
public function setSSL($isEnabled)
    {
        if (!is_bool($isEnabled)) {
            throw new InvalidArgumentException(
                sprintf('%s only accepts a boolean', __FUNCTION__)
            );
        }

        $this->ssl = (bool)$isEnabled;

        return $this;
    }
public function setSSL($isEnabled)
    {
        if (!is_bool($isEnabled)) {
            throw new InvalidArgumentException(
                sprintf('%s only accepts a boolean', __FUNCTION__)
            );
        }

        $this->ssl = (bool)$isEnabled;

        return $this;
    }
public function setSSL ( $ isEnabled ) { if ( ! is_bool ( $ isEnabled ) ) { throw new InvalidArgumentException ( sprintf ( '%s only accepts a boolean' , __FUNCTION__ ) ) ; } $ this -> ssl = ( bool ) $ isEnabled ; return $ this ; }
Set if SSL should be used for the connection.

@param bool $isEnabled
@return static
@throws InvalidArgumentException
Set if SSL should be used for the connection .