public function getProvider()
    {
        if (null === $this->provider) {
            if (0 === count($this->providers)) {
                throw new \RuntimeException('No provider registered.');
            } else {
                $this->provider = $this->providers[key($this->providers)];
            }
        }

        return $this->provider;
    }
public function getProvider()
    {
        if (null === $this->provider) {
            if (0 === count($this->providers)) {
                throw new \RuntimeException('No provider registered.');
            } else {
                $this->provider = $this->providers[key($this->providers)];
            }
        }

        return $this->provider;
    }
public function getProvider ( ) { if ( null === $ this -> provider ) { if ( 0 === count ( $ this -> providers ) ) { throw new \ RuntimeException ( 'No provider registered.' ) ; } else { $ this -> provider = $ this -> providers [ key ( $ this -> providers ) ] ; } } return $ this -> provider ; }
Returns the provider to use.

@return \SmsSender\Provider\ProviderInterface
Returns the provider to use .