Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b13fbb9
commit 05bc1d7
Showing
3 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'], | ||
]); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|
||
} |