public function make($driverName)
    {
        $driverName = trim(strtolower($driverName));
        switch ($driverName) {
            case 'google':
                return $this->google;
            case 'bitly':
                return $this->bitly;
            default:
                throw new InvalidArgumentException('Invalid URL Shortener driver name');
        }
    }
public function make($driverName)
    {
        $driverName = trim(strtolower($driverName));
        switch ($driverName) {
            case 'google':
                return $this->google;
            case 'bitly':
                return $this->bitly;
            default:
                throw new InvalidArgumentException('Invalid URL Shortener driver name');
        }
    }
public function make ( $ driverName ) { $ driverName = trim ( strtolower ( $ driverName ) ) ; switch ( $ driverName ) { case 'google' : return $ this -> google ; case 'bitly' : return $ this -> bitly ; default : throw new InvalidArgumentException ( 'Invalid URL Shortener driver name' ) ; } }
Create a new Url Shortener driver instance based on its name

@param  string  $driverName     google|bitly
@throws InvalidArgumentException
@return DriverInterface
Create a new Url Shortener driver instance based on its name