public function __construct(HistoryTypeEnum $historyType, Guid $guid, $category) { $this->historyType = $historyType; $this->guid = $guid; $this->category = (int) $category; parent::__construct(); }
/** * @inheritdoc * @param DeferredQueue[] $queues * @param DeferredGroup $group * @param array $config */ public function __construct(&$queues, &$group, $config = []) { parent::__construct($config); $this->queues = $queues; $this->group = $group; $this->overallStatus = true; foreach ($this->queues as $item) { $this->overallStatus = $this->overallStatus && $item->getProcess()->getExitCode() === 0; } }
public function __construct($config = []) { foreach (['modelId', 'modelType', 'payload', 'meta'] as $key) { if (isset($config[$key])) { $property = '_' . $key; $this->{$property} = $config[$key]; unset($config[$key]); } } parent::__construct($config); }
public function __construct(Model &$model, $config = []) { parent::__construct($config); $this->model = $model; $this->modelClassName = $this->model->className(); }
public function __construct(array $config = null) { parent::__construct($config); }
/** * @inheritdoc * @param integer|string $groupId * @param integer|string $queueId * @param array $config */ public function __construct($groupId, $queueId, $config = []) { parent::__construct($config); $this->groupId = $groupId; $this->queueId = $queueId; }
public function __construct(ActiveForm $form, Model &$model, $config = []) { parent::__construct($config); $this->form = $form; $this->model = $model; }
public function __construct($step = null, $saved = null, $config = []) { $this->step = $step; $this->saved = $saved; parent::__construct($config); }
/** * @inheritdoc */ public function __construct(ActiveQueryInterface $query, $config = []) { $this->query = $query; parent::__construct($config); }
/** * Constructor. * @param mixed $owner the object associated with this event. * @param array $config name-value pairs that will be used to initialize the object properties */ public function __construct($owner, $config = []) { $this->owner = $owner; parent::__construct($config); }
public function __construct($params = [], $config = []) { $this->params = $params; parent::__construct($config); }
/** * TransitionEvent constructor. * @param Transition $transition * @param array $config */ public function __construct(Transition $transition, $config = []) { $this->transition = $transition; parent::__construct($config); }
/** * @inheritdoc */ public function __construct($key, $value, $config = []) { parent::__construct($config); $this->_key = $key; $this->_value = $value; }
/** * Constructor. * @param \yii\base\Widget $widget The widget associated with this action event. * @param array $config Name-value pairs that will be used to initialize * the object properties. */ public function __construct(\yii\base\Widget $widget, $config = []) { $this->widget = $widget; parent::__construct($config); }
/** * @param array $message * @param $wechat * @param array $config */ public function __construct($message, $wechat, $config = []) { $this->message = $message; $this->wechat = $wechat; parent::__construct($config); }
public function __construct($config = [], &$result = []) { parent::__construct($config); $this->result =& $result; }
/** * @inheritdoc */ public function __construct(Order $order, $products, $config = []) { $this->order = $order; $this->products = is_array($products) ? $products : []; parent::__construct($config); }