src/Phossa2/Db/Manager.php
public function addDriver(DriverInterface $driver, /*# int */ $factor = 1)
    {
        // get unique driver id
        $id = $this->getDriverId($driver);

        // fix factor range: 1 - 10
        $this->factors[$id] = $this->fixFactor($factor);

        // add to the pool
        $this->drivers[$id] = $driver;

        return $this;
    }
public function addDriver(DriverInterface $driver, /*# int */ $factor = 1)
    {
        // get unique driver id
        $id = $this->getDriverId($driver);

        // fix factor range: 1 - 10
        $this->factors[$id] = $this->fixFactor($factor);

        // add to the pool
        $this->drivers[$id] = $driver;

        return $this;
    }
public function addDriver ( DriverInterface $ driver , /*# int */ $ factor = 1 ) { // get unique driver id $ id = $ this -> getDriverId ( $ driver ) ; // fix factor range: 1 - 10 $ this -> factors [ $ id ] = $ this -> fixFactor ( $ factor ) ; // add to the pool $ this -> drivers [ $ id ] = $ driver ; return $ this ; }
Specify a weighting factor for the driver. normally 1 - 10

{@inheritDoc}
@param  int $factor weight factor for round-robin
Specify a weighting factor for the driver . normally 1 - 10