| Total Complexity | 6 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | trait VendorsTrait |
||
| 10 | { |
||
| 11 | /** @var Collection|VendorInterface[] */ |
||
| 12 | protected $vendors; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @return Collection|VendorInterface[] |
||
| 16 | */ |
||
| 17 | public function getVendors(): Collection |
||
| 18 | { |
||
| 19 | return $this->vendors; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param VendorInterface $vendor |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | public function hasVendor(VendorInterface $vendor): bool |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param VendorInterface $vendor |
||
| 33 | */ |
||
| 34 | public function addVendor(VendorInterface $vendor): void |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param VendorInterface $vendor |
||
| 43 | */ |
||
| 44 | public function removeVendor(VendorInterface $vendor): void |
||
| 51 |