public function setPool(Pool $pool)
    {
        $this->pool = $pool;

        foreach ($this->poolRepositories as $repo) {
            $pool->addRepository($repo);
        }

        $this->poolRepositories = array();

        return $this;
    }
public function setPool(Pool $pool)
    {
        $this->pool = $pool;

        foreach ($this->poolRepositories as $repo) {
            $pool->addRepository($repo);
        }

        $this->poolRepositories = array();

        return $this;
    }
public function setPool ( Pool $ pool ) { $ this -> pool = $ pool ; foreach ( $ this -> poolRepositories as $ repo ) { $ pool -> addRepository ( $ repo ) ; } $ this -> poolRepositories = array ( ) ; return $ this ; }
Set the pool.

@param Pool $pool The pool

@return self
Set the pool .