| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace common\events\mall;
- use common\components\BaseEvent;
- use common\enums\EventNameEnum;
- final class IsShowDiyComponentsEvent extends BaseEvent
- {
- /**
- * 触发事件名称(不可修改)
- *
- * @var string
- */
- public $name = EventNameEnum::IS_SHOW_DIY_COMPONENTS;
- protected $isShow = 1;
- /**
- * @var int
- */
- public $mall_id;
- /**
- * @var array
- */
- public $listeners = [];
- public function __construct(int $mall_id)
- {
- $this->mall_id = $mall_id;
- }
- /**
- * @return void
- */
- public function setNoShow()
- {
- $this->isShow = 0;
- }
- /**
- * @return int
- */
- public function getIsShow(): int
- {
- return $this->isShow;
- }
- }
|