191], [['link_hash'], 'unique'], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => Yii::t('app', 'ID'), 'title' => Yii::t('app', 'Title'), 'source' => Yii::t('app', 'Source'), 'link' => Yii::t('app', 'Link'), 'link_hash' => Yii::t('app', 'Link Hash'), 'clicks' => Yii::t('app', 'Clicks'), 'registrations' => Yii::t('app', 'Registrations'), 'owner' => Yii::t('app', 'Owner'), ]; } /** * {@inheritdoc} * @return ReferralLinkQuery the active query used by this AR class. */ public static function find() { return new ReferralLinkQuery(get_called_class()); } }