コード例 #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;
     }
 }
コード例 #3
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);
 }
コード例 #6
0
 /**
  * @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;
 }
コード例 #7
0
 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
ファイル: DataEvent.php プロジェクト: dimitu/yii2-listener
 /**
  * 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
ファイル: Event.php プロジェクト: sangkil/application
 public function __construct($params = [], $config = [])
 {
     $this->params = $params;
     parent::__construct($config);
 }
コード例 #12
0
ファイル: TransitionEvent.php プロジェクト: dizeee/yfinite
 /**
  * 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
ファイル: Event.php プロジェクト: urbanindo/yii2-core-widgets
 /**
  * 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
ファイル: CartActionEvent.php プロジェクト: lzpfmh/dotplant2
 /**
  * @inheritdoc
  */
 public function __construct(Order $order, $products, $config = [])
 {
     $this->order = $order;
     $this->products = is_array($products) ? $products : [];
     parent::__construct($config);
 }