3 namespace Wallabag\CoreBundle\Entity
;
5 use Doctrine\ORM\Mapping
as ORM
;
6 use Symfony\Bridge\RulerZ\Validator\Constraints
as RulerZAssert
;
7 use Symfony\Component\Validator\Constraints
as Assert
;
12 * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\IgnoreOriginUserRuleRepository")
13 * @ORM\Table(name="`ignore_origin_user_rule`")
15 class IgnoreOriginUserRule
implements IgnoreOriginRuleInterface
, RuleInterface
20 * @ORM\Column(name="id", type="integer")
22 * @ORM\GeneratedValue(strategy="AUTO")
30 * @Assert\Length(max=255)
31 * @RulerZAssert\ValidRule(
32 * allowed_variables={"host","_all"},
33 * allowed_operators={"=","~"}
35 * @ORM\Column(name="rule", type="string", nullable=false)
40 * @ORM\ManyToOne(targetEntity="Wallabag\CoreBundle\Entity\Config", inversedBy="ignoreOriginRules")
49 public function getId()
57 * @return IgnoreOriginRuleInterface
59 public function setRule(string $rule)
71 public function getRule()
79 * @return IgnoreOriginUserRule
81 public function setConfig(Config
$config)
83 $this->config
= $config;
93 public function getConfig()