Snc\RedisBundle\DependencyInjection\Configuration\RedisDsn::getHost PHP Method

getHost() public method

public getHost ( ) : string
return string
    public function getHost()
    {
        return $this->host;
    }

Usage Example

Example #1
0
 /**
  * @param string $dsn  DSN
  * @param string $host Host
  *
  * @dataProvider hostValues
  */
 public function testHost($dsn, $host)
 {
     $dsn = new RedisDsn($dsn);
     $this->assertSame($host, $dsn->getHost());
 }