Skip to content

Commit

Permalink
DEV: add Quotas
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed May 26, 2018
1 parent b13fbb9 commit 05bc1d7
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/WithSurveyModel.php
Expand Up @@ -6,8 +6,9 @@

/**
* Class WithSurveyModel
* @package dameter\abstracts\models
* @property integer $survey_id
*
* @package dameter\abstracts\models
* @property BaseSurvey $survey
*
* @author Tõnis Ormisson <tonis@andmemasin.eu>
Expand Down
30 changes: 30 additions & 0 deletions src/models/Quota.php
@@ -0,0 +1,30 @@
<?php

namespace dameter\abstracts\models;

use dameter\abstracts\WithLanguageSettingsModel;


/**
* Class Quota
* @property integer $quota_id
* @property string $conditions
*
* @package dameter\models
* @author Tõnis Ormisson <tonis@andmemasin.eu>
*/
class Quota extends WithLanguageSettingsModel
{
public static $settingsClass = QuotaText::class;

/**
* {@inheritdoc}
*/
public function rules()
{
return array_merge(parent::rules(), [
[['conditions'], 'string'],
]);
}

}
21 changes: 21 additions & 0 deletions src/models/QuotaText.php
@@ -0,0 +1,21 @@
<?php
/**
* User: tonis_o
* Date: 26.05.18
* Time: 21:02
*/

namespace dameter\abstracts\models;

/**
* Class QuotaText
* @property integer $quota_text_id
*
* @package dameter\abstracts\models
* @author Tõnis Ormisson <tonis@andmemasin.eu>
*/
class QuotaText extends BaseLanguageSetting
{
public static $parentClass = Quota::class;

}

0 comments on commit 05bc1d7

Please sign in to comment.