class SendBonusInfoToSiteJob extends \yii\base\BaseObject implements JobInterface
{
- public $messageData;
+ public $phone;
+ public $bonus;
+ public $bonus_created_at;
public function execute($queue) {
- $phone = ($this->messageData)['phone'];
- $bonus = ($this->messageData)['bonus'];
- $bonus_created_at = ($this->messageData)['bonus_created_at'];
+ $phone = $this->phone;
+ $bonus = $this->bonus;
+ $bonus_created_at = $this->bonus_created_at;
try {
$result = SiteService::notifySiteAboutBonuses($phone, $bonus, $bonus_created_at);