| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- <?php
- namespace AppBundle\Entity\AccessAndFunction;
- use AppBundle\Annotation\DefaultField;
- use Doctrine\ORM\Mapping as ORM;
- use Dunglas\ApiBundle\Annotation\Iri;
- use Symfony\Component\Serializer\Annotation\Groups;
- use Symfony\Component\Validator\Constraints as Assert;
- use AppBundle\Entity\Traits\TimestampableEntity;
- use AppBundle\Entity\Traits\CreatorUpdaterEntity;
- /**
- * Personnalisation d'une liste par un Access
- *
- * @Iri("http://schema.org/PersonalizedList")
- */
- #[ORM\Entity]
- class PersonalizedList
- {
- use TimestampableEntity;
- use CreatorUpdaterEntity;
- /**
- * @var int
- */
- #[ORM\Column(type: 'integer')]
- #[ORM\Id]
- #[ORM\GeneratedValue(strategy: 'AUTO')]
- #[Groups(['personalizedlist'])]
- private $id;
- /**
- * @var Access
- */
- #[ORM\ManyToOne(targetEntity: 'Access', inversedBy: 'personalizedLists')]
- #[ORM\JoinColumn(nullable: false)]
- #[Assert\NotNull]
- #[Groups(['personalizedlist'])]
- private $access;
- /**
- * @var $label
- */
- #[ORM\Column(type: 'string', length: 200, nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['personalizedlist'])]
- private $label;
- /**
- * @var array
- */
- #[ORM\Column(type: 'json_array', nullable: true)]
- #[Groups(['personalizedlist'])]
- private $filters;
- #[ORM\Column(type: 'string', length: 150)]
- #[Assert\Type(type: 'string')]
- #[Groups(['personalizedlist'])]
- private $entity;
- /**
- * @var array
- */
- #[ORM\Column(type: 'json_array', nullable: true)]
- #[Groups(['personalizedlist'])]
- private $columns;
- /**
- * @var $menuKey
- */
- #[ORM\Column(type: 'string', length: 150, nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['personalizedlist'])]
- private $menuKey;
- /**
- * Sets id.
- *
- * @param int $id
- *
- * @return $this
- */
- public function setId($id)
- {
- $this->id = $id;
- return $this;
- }
- /**
- * Gets id.
- *
- * @return int
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set filters
- *
- * @param array $filters
- *
- * @return PersonalizedList
- */
- public function setFilters($filters)
- {
- $this->filters = $filters;
- return $this;
- }
- /**
- * Get filters
- *
- * @return array
- */
- public function getFilters()
- {
- return $this->filters;
- }
- /**
- * Set columns
- *
- * @param array $columns
- *
- * @return PersonalizedList
- */
- public function setColumns($columns)
- {
- $this->columns = $columns;
- return $this;
- }
- /**
- * Get columns
- *
- * @return array
- */
- public function getColumns()
- {
- return $this->columns;
- }
- /**
- * Set access
- *
- * @param \AppBundle\Entity\AccessAndFunction\Access $access
- *
- * @return PersonalizedList
- */
- public function setAccess(\AppBundle\Entity\AccessAndFunction\Access $access)
- {
- $this->access = $access;
- return $this;
- }
- /**
- * Get access
- *
- * @return \AppBundle\Entity\AccessAndFunction\Access
- */
- public function getAccess()
- {
- return $this->access;
- }
- /**
- * Set menuKey
- *
- * @param string $menuKey
- *
- * @return PersonalizedList
- */
- public function setMenuKey($menuKey)
- {
- $this->menuKey = $menuKey;
- return $this;
- }
- /**
- * Get menuKey
- *
- * @return string
- */
- public function getMenuKey()
- {
- return $this->menuKey;
- }
- /**
- * Set label
- *
- * @param string $label
- *
- * @return PersonalizedList
- */
- public function setLabel($label)
- {
- $this->label = $label;
- return $this;
- }
- /**
- * Get label
- *
- * @return string
- */
- public function getLabel()
- {
- return $this->label;
- }
- /**
- * Set entity
- *
- * @param string $entity
- *
- * @return PersonalizedList
- */
- public function setEntity($entity)
- {
- $this->entity = $entity;
- return $this;
- }
- /**
- * Get entity
- *
- * @return string
- */
- public function getEntity()
- {
- return $this->entity;
- }
- }
|