1 | <?php |
||
14 | trait OfferEditingServiceDecoratorTrait |
||
15 | { |
||
16 | /** |
||
17 | * @return OfferEditingServiceInterface |
||
18 | */ |
||
19 | abstract protected function getDecoratedEditingService(); |
||
20 | |||
21 | public function addLabel($id, Label $label) |
||
26 | |||
27 | public function removeLabel($id, Label $label) |
||
32 | |||
33 | public function updateTitle($id, Language $language, StringLiteral $title) |
||
34 | { |
||
35 | return $this->getDecoratedEditingService() |
||
36 | ->updateTitle($id, $language, $title); |
||
37 | } |
||
38 | |||
39 | public function addImage($id, Image $image) |
||
44 | |||
45 | public function updateImage($id, Image $image, StringLiteral $description, StringLiteral $copyrightHolder) |
||
50 | |||
51 | public function removeImage($id, Image $image) |
||
56 | |||
57 | public function selectMainImage($id, Image $image) |
||
62 | |||
63 | public function updateDescription($id, Language $language, Description $description) |
||
68 | |||
69 | public function updateTypicalAgeRange($id, $ageRange) |
||
74 | |||
75 | public function deleteTypicalAgeRange($id) |
||
80 | |||
81 | public function updateOrganizer($id, $organizerId) |
||
86 | |||
87 | public function deleteOrganizer($id, $organizerId) |
||
92 | |||
93 | public function updateContactPoint($id, ContactPoint $contactPoint) |
||
98 | |||
99 | public function updateBookingInfo($id, BookingInfo $bookingInfo) |
||
104 | |||
105 | public function updatePriceInfo($id, PriceInfo $priceInfo) |
||
110 | } |
||
111 |