Total Complexity | 6 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | trait VendorsTrait |
||
8 | { |
||
9 | /** @var ArrayCollection|VendorInterface[] */ |
||
10 | protected $vendors; |
||
11 | |||
12 | /** |
||
13 | * @inheritdoc |
||
14 | */ |
||
15 | public function getVendors() |
||
16 | { |
||
17 | return $this->vendors; |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @inheritdoc |
||
22 | */ |
||
23 | public function setVendors(ArrayCollection $vendors) |
||
24 | { |
||
25 | $this->vendors = $vendors; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function addVendor(VendorInterface $vendor) |
||
36 | } |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | public function removeVendor(VendorInterface $vendor) |
||
47 | } |
||
48 | } |
||
49 | } |