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

getWeight() public method

public getWeight ( ) : integer
return integer
    public function getWeight()
    {
        return $this->weight;
    }

Usage Example

Example #1
0
 /**
  * @param string $dsn    DSN
  * @param int    $weight Weight
  *
  * @dataProvider weightValues
  */
 public function testParameterValues($dsn, $weight)
 {
     $dsn = new RedisDsn($dsn);
     $this->assertSame($weight, $dsn->getWeight());
 }