| Total Complexity | 5 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class BookableTag extends AbstractModel |
||
| 24 | { |
||
| 25 | use HasName; |
||
| 26 | use HasColor; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var Collection |
||
| 30 | * @ORM\ManyToMany(targetEntity="Bookable", inversedBy="bookableTags") |
||
| 31 | */ |
||
| 32 | private $bookables; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Constructor |
||
| 36 | */ |
||
| 37 | public function __construct() |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return Collection |
||
| 44 | */ |
||
| 45 | public function getBookables(): Collection |
||
| 46 | { |
||
| 47 | return $this->bookables; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Add bookable |
||
| 52 | * |
||
| 53 | * @param bookable $bookable |
||
| 54 | */ |
||
| 55 | public function addBookable(Bookable $bookable): void |
||
| 60 | } |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Remove bookable |
||
| 65 | * |
||
| 66 | * @param bookable $bookable |
||
| 67 | */ |
||
| 68 | public function removeBookable(Bookable $bookable): void |
||
| 72 | } |
||
| 73 | } |
||
| 74 |