Пример #1
0
 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);
 }
Пример #4
0
 public function __construct(Model &$model, $config = [])
 {
     parent::__construct($config);
     $this->model = $model;
     $this->modelClassName = $this->model->className();
 }
Пример #5
0
 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;
 }
Пример #8
0
 public function __construct($step = null, $saved = null, $config = [])
 {
     $this->step = $step;
     $this->saved = $saved;
     parent::__construct($config);
 }
Пример #9
0
 /**
  * @inheritdoc
  */
 public function __construct(ActiveQueryInterface $query, $config = [])
 {
     $this->query = $query;
     parent::__construct($config);
 }
Пример #10
0
 /**
  * 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);
 }
Пример #11
0
 public function __construct($params = [], $config = [])
 {
     $this->params = $params;
     parent::__construct($config);
 }
Пример #12
0
 /**
  * TransitionEvent constructor.
  * @param Transition $transition
  * @param array $config
  */
 public function __construct(Transition $transition, $config = [])
 {
     $this->transition = $transition;
     parent::__construct($config);
 }
Пример #13
0
 /**
  * @inheritdoc
  */
 public function __construct($key, $value, $config = [])
 {
     parent::__construct($config);
     $this->_key = $key;
     $this->_value = $value;
 }
Пример #14
0
 /**
  * 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);
 }
Пример #15
0
 /**
  * @param array $message
  * @param $wechat
  * @param array $config
  */
 public function __construct($message, $wechat, $config = [])
 {
     $this->message = $message;
     $this->wechat = $wechat;
     parent::__construct($config);
 }
Пример #16
0
 public function __construct($config = [], &$result = [])
 {
     parent::__construct($config);
     $this->result =& $result;
 }
Пример #17
0
 /**
  * @inheritdoc
  */
 public function __construct(Order $order, $products, $config = [])
 {
     $this->order = $order;
     $this->products = is_array($products) ? $products : [];
     parent::__construct($config);
 }