public function setMaxRedirects($maxRedirects)
    {
        $this->maxRedirects = $maxRedirects < 0 ? -1 : $maxRedirects;
        $this->followRedirects = -1 != $this->maxRedirects;
    }
public function setMaxRedirects($maxRedirects)
    {
        $this->maxRedirects = $maxRedirects < 0 ? -1 : $maxRedirects;
        $this->followRedirects = -1 != $this->maxRedirects;
    }
public function setMaxRedirects ( $ maxRedirects ) { $ this -> maxRedirects = $ maxRedirects < 0 ? - 1 : $ maxRedirects ; $ this -> followRedirects = - 1 != $ this -> maxRedirects ; }
Sets the maximum number of redirects that crawler can follow.

@param int $maxRedirects
Sets the maximum number of redirects that crawler can follow .