for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bee4\RobotsTxt\Exception;
use Exception;
use Bee4\RobotsTxt\Rule;
/**
* Class DuplicateRuleException
* Error thrown when the parser try to add 2 rules for the same UA
*
* @copyright Bee4 2015
* @author Stephane HULARD <[email protected]>
*/
class DuplicateRuleException extends Exception
{
* @var Rule
protected $rule;
* @var string
protected $ua;
* Rule setter
* @param Rule $rule
* @return DuplicateRuleException
public function setRule(Rule $rule)
$this->rule = $rule;
return $this;
}
* @return Rule
public function getRule()
return $this->rule;
* User Agent setter
* @param string $ua
public function setUserAgent($ua)
$this->ua = $ua;
* @return string
public function getUserAgent()
return $this->ua;