public function getClientByName(string $name): Client
    {
        if (!isset($this->clientsConfig[$name])) {
            throw new RuntimeException(sprintf('Contentful client with "%s" name does not exist.', $name));
        }

        return $this->clientsConfig[$name]['service'];
    }
public function getClientByName(string $name): Client
    {
        if (!isset($this->clientsConfig[$name])) {
            throw new RuntimeException(sprintf('Contentful client with "%s" name does not exist.', $name));
        }

        return $this->clientsConfig[$name]['service'];
    }
public function getClientByName ( string $ name ) : Client { if ( ! isset ( $ this -> clientsConfig [ $ name ] ) ) { throw new RuntimeException ( sprintf ( 'Contentful client with "%s" name does not exist.' , $ name ) ) ; } return $ this -> clientsConfig [ $ name ] [ 'service' ] ; }
Returns the Contentful client with provided name.

@throws \Netgen\Layouts\Contentful\Exception\RuntimeException If client with provided name does not exist
Returns the Contentful client with provided name .