/** * @inheritdoc */ public function __construct($attributes = null, array $options = []) { parent::__construct($attributes, $options); $this->organization = $options['collection']->organization; $this->site_data = $attributes->site; $this->tags_data = $attributes->tags; }
/** * Object constructor * * @param object $attributes Attributes of this model * @param array $options Options with which to configure this model * @return Workflow */ public function __construct($attributes = null, array $options = []) { parent::__construct($attributes, $options); $this->owner = null; if (isset($options['collection'])) { $this->owner = $options['collection']->getOwnerObject(); } elseif (isset($options['environment'])) { $this->owner = $options['environment']; } elseif (isset($options['organization'])) { $this->owner = $options['organization']; } elseif (isset($options['site'])) { $this->owner = $options['site']; } elseif (isset($options['user'])) { $this->owner = $options['user']; } }
/** * @inheritdoc */ public function __construct($attributes = null, array $options = []) { parent::__construct($attributes, $options); $this->site_info = $attributes->site; $this->user = $options['collection']->getUser(); }
/** * @inheritdoc */ public function __construct($attributes = null, array $options = []) { parent::__construct($attributes, $options); $this->site = $options['site']; $this->url = "sites/{$this->site->id}/new-relic"; }
/** * Object constructor * * @param object $attributes Attributes of this model * @param array $options Options with which to configure this model */ public function __construct($attributes = null, array $options = []) { parent::__construct($attributes, $options); $this->url = "users/{$this->id}"; }
/** * Object constructor * * @param object $attributes Attributes of this model * @param array $options Options with which to configure this model * @return SiteUserMembership */ public function __construct($attributes = null, array $options = []) { parent::__construct($attributes, $options); $this->site = $options['collection']->site; $this->user_data = $attributes->user; }
/** * @inheritdoc */ public function __construct($attributes = null, array $options = []) { parent::__construct($attributes, $options); $this->url = "sites/{$this->id}?site_state=true"; $this->setUpstream($attributes); }
/** * @inheritdoc */ public function __construct($attributes = null, array $options = []) { parent::__construct($attributes, $options); }
/** * Object constructor * * @param object $attributes Attributes of this model * @param array $options Options with which to configure this model */ public function __construct($attributes, array $options = []) { $this->site = $options['collection']->getSite(); parent::__construct($attributes, $options); $this->url = "sites/{$this->site->id}/environments/{$this->id}"; }
/** * @inheritdoc */ public function __construct($attributes, array $options = []) { parent::__construct($attributes, $options); $this->environment = $options['collection']->environment; }