Total Complexity | 6 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class ExtraFieldSavedSearch |
||
18 | { |
||
19 | use TimestampableEntity; |
||
20 | use UserTrait; |
||
21 | |||
22 | /** |
||
23 | * @ORM\Column(name="id", type="integer", nullable=false) |
||
24 | * @ORM\Id |
||
25 | * @ORM\GeneratedValue |
||
26 | */ |
||
27 | protected int $id; |
||
28 | |||
29 | /** |
||
30 | * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\ExtraField") |
||
31 | * @ORM\JoinColumn(name="field_id", referencedColumnName="id") |
||
32 | */ |
||
33 | protected ExtraField $field; |
||
34 | |||
35 | /** |
||
36 | * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User") |
||
37 | * @ORM\JoinColumn(name="user_id", referencedColumnName="id") |
||
38 | */ |
||
39 | protected User $user; |
||
40 | |||
41 | /** |
||
42 | * @ORM\Column(name="value", type="array", nullable=true, unique=false) |
||
43 | */ |
||
44 | protected ?array $value; |
||
45 | |||
46 | public function __construct() |
||
47 | { |
||
48 | $this->value = []; |
||
49 | } |
||
50 | |||
51 | public function getId() |
||
52 | { |
||
53 | return $this->id; |
||
54 | } |
||
55 | |||
56 | public function getField(): ExtraField |
||
59 | } |
||
60 | |||
61 | public function setField(ExtraField $field): self |
||
62 | { |
||
63 | $this->field = $field; |
||
64 | |||
65 | return $this; |
||
66 | } |
||
67 | |||
68 | public function getValue(): ?array |
||
71 | } |
||
72 | |||
73 | public function setValue(array $value): self |
||
78 | } |
||
79 | } |
||
80 |