| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- namespace common\events\data\api;
- use common\components\BaseEvent;
- use common\fixtures\ListData;
- use common\enums\EventNameEnum;
- //渠道分红、渠道业绩内购抵扣
- class AgentMarketingEvent extends BaseEvent
- {
- public $name = EventNameEnum::AGENT_GOODS_DEDUCT;
- public $item;
- public $form;
- public $extra;
- public function __construct($mall_id, $item, $form, $extra)
- {
- parent::__construct($mall_id);
- $this->item = $item;
- $this->form = $form;
- $this->extra = $extra;
- }
- public function getItem()
- {
- return $this->item;
- }
- public function getForm()
- {
- return $this->form;
- }
- public function getExtra()
- {
- return $this->extra;
- }
- /**
- * @return void
- */
- public function setItem($item)
- {
- $this->item = $item;
- }
- public function setForm($form)
- {
- $this->form = $form;
- }
- public function setExtra($extra)
- {
- $this->extra = $extra;
- }
- /**
- * @return BaseOrderForm|boolean
- */
- public function getResultForm()
- {
- // if ($this->isError) return false;
- $data = [
- 'item' => $this->item,
- 'form' => $this->form,
- 'extra' => $this->extra,
- ];
- return $data;
- }
- }
|