rendered paste body<?phpnamespace Politistream\CoreBundle\Entity;use Doctrine\ORM\Mapping as ORM;use Politistream\CoreBundle\Component\Profile as PC;use Doctrine\Common\Collections\ArrayCollection;/** * Politistream\CoreBundle\Entity\ProfileRule * * @ORM\Table(name="profile_rule") * @ORM\Entity(repositoryClass="Politistream\CoreBundle\Repository\ProfileRuleRepository") */class ProfileRule{ /** * @var integer $id * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @var object $rule * * @ORM\Column(name="rule", type="object") */ protected $rule; /** * @var string $target_profile_type * * @ORM\Column(name="target_profile_type", type="string", length=255) */ protected $target_profile_type; /** * @var array $configuration * * @ORM\Column(name="configurations", type="object") */ protected $configurations; public function __construct() { $this->configurations = new ArrayCollection(); } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set rule * * @param object $rule */ public function setRule(PC\ProfileRule $rule) { $this->rule = $rule; } /** * Get rule * * @return object */ public function getRule() { return $this->rule; } /** * Set target_profile_type * * @param string $targetProfileType */ public function setTargetProfileType($targetProfileType) { $this->target_profile_type = $targetProfileType; } /** * Get target_profile_type * * @return string */ public function getTargetProfileType() { return $this->target_profile_type; } /** * Set configuration * * @param object $configuration */ public function setConfigurations(ArrayCollection $configurations) { $this->configurations = $configurations; } /** * Get configuration * * @return array */ public function getConfigurations() { return $this->configurations; } public function addConfiguration(PC\ProfileConfiguration $configuration) { $this->configurations->add($configuration); }}