| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class Item extends AbstractModel |
||
| 19 | { |
||
| 20 | use HasName; |
||
| 21 | use HasDescription; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var Collection |
||
| 25 | * |
||
| 26 | * @ORM\ManyToMany(targetEntity="Application\Model\Booking", mappedBy="items") |
||
| 27 | */ |
||
| 28 | private $bookings; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Constructor |
||
| 32 | */ |
||
| 33 | public function __construct() |
||
| 34 | { |
||
| 35 | $this->bookings = new ArrayCollection(); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return Collection |
||
| 40 | */ |
||
| 41 | public function getBookings(): Collection |
||
| 44 | } |
||
| 45 | } |
||
| 46 |