Completed
Push — master ( 02ce33...6d2df6 )
by Tõnis
02:21
created

QuotaText::rules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace dameter\abstracts\models;
4
5
/**
6
 * Class QuotaText
7
 * @property integer $quota_text_id
8
 * @property integer $type_id
9
 *
10
 * @package dameter\abstracts\models
11
 * @author Tõnis Ormisson <[email protected]>
12
 */
13
class QuotaText extends BaseLanguageSetting
14
{
15
    const TYPE_END_MESSAGE = 1;
16
    const TYPE_END_URL = 2;
17
18
    public static $parentClass = Quota::class;
19
20
    /** {@inheritdoc} */
21
    public function rules()
22
    {
23
        return array_merge(parent::rules(), [
24
            [['type_id'], 'integer'],
25
        ]);
26
    }
27
}