public function getPoller($name)
    {
        if (!array_key_exists($name, $this->pollers)) {
            throw new InvalidArgumentException("Poller named '$name' does not exist");
        }

        return $this->pollers[$name];
    }
public function getPoller($name)
    {
        if (!array_key_exists($name, $this->pollers)) {
            throw new InvalidArgumentException("Poller named '$name' does not exist");
        }

        return $this->pollers[$name];
    }
public function getPoller ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> pollers ) ) { throw new InvalidArgumentException ( "Poller named '$name' does not exist" ) ; } return $ this -> pollers [ $ name ] ; }
Returns poller by name

@param $name

@return Poller

@throws InvalidArgumentException in case of absence
Returns poller by name