Total Complexity | 4 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
18 | class BookableMetadata extends AbstractModel |
||
19 | { |
||
20 | use HasName; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | * |
||
25 | * @ORM\Column(type="string", length=191, options={"default" = ""}) |
||
26 | */ |
||
27 | private $value = ''; |
||
28 | |||
29 | /** |
||
30 | * @var Bookable |
||
31 | * @ORM\ManyToOne(targetEntity="Bookable") |
||
32 | * @ORM\JoinColumns({ |
||
33 | * @ORM\JoinColumn(onDelete="CASCADE") |
||
34 | * }) |
||
35 | */ |
||
36 | private $bookable; |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getValue(): string |
||
42 | { |
||
43 | return $this->value; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param string $value |
||
48 | */ |
||
49 | public function setValue(string $value): void |
||
50 | { |
||
51 | $this->value = $value; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return Bookable |
||
56 | */ |
||
57 | public function getBookable(): Bookable |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @param Bookable $bookable |
||
64 | */ |
||
65 | public function setBookable(Bookable $bookable): void |
||
70 |