| 1 | <?php |
||
| 9 | class PromotionRepository extends CmsRepository |
||
| 10 | { |
||
| 11 | public $model; |
||
| 12 | |||
| 13 | public $translationRepo; |
||
| 14 | |||
| 15 | public $table; |
||
| 16 | |||
| 17 | public function __construct(Promotion $model, TranslationRepository $translationRepo) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Stores Promotions into database. |
||
| 26 | * |
||
| 27 | * @param array $payload |
||
| 28 | * |
||
| 29 | * @return Promotions |
||
| 30 | */ |
||
| 31 | public function store($payload) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Updates Promotion in the database |
||
| 40 | * |
||
| 41 | * @param Promotions $widget |
||
| 42 | * @param array $payload |
||
| 43 | * |
||
| 44 | * @return Promotions |
||
| 45 | */ |
||
| 46 | public function update($widget, $payload) |
||
| 58 | } |
||
| 59 |