Passed
Push — master ( b3147e...c49c81 )
by Ferry
03:13
created

TextModel::getLimit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: User
5
 * Date: 4/21/2019
6
 * Time: 10:51 PM
7
 */
8
9
namespace crocodicstudio\crudbooster\types\text;
10
11
use crocodicstudio\crudbooster\models\ColumnModel;
12
13
class TextModel extends ColumnModel
14
{
15
16
    private $max_length;
17
    private $min_length;
18
    private $limit;
19
20
    /**
21
     * @return mixed
22
     */
23
    public function getLimit()
24
    {
25
        return $this->limit;
26
    }
27
28
    /**
29
     * @param mixed $limit
30
     */
31
    public function setLimit($limit): void
32
    {
33
        $this->limit = $limit;
34
    }
35
36
37
    /**
38
     * @return mixed
39
     */
40
    public function getMaxLength()
41
    {
42
        return $this->max_length;
43
    }
44
45
    /**
46
     * @param mixed $max_length
47
     * @return TextModel
48
     */
49
    public function setMaxLength($max_length)
50
    {
51
        $this->max_length = $max_length;
52
        return $this;
53
    }
54
55
    /**
56
     * @return mixed
57
     */
58
    public function getMinLength()
59
    {
60
        return $this->min_length;
61
    }
62
63
    /**
64
     * @param mixed $min_length
65
     * @return TextModel
66
     */
67
    public function setMinLength($min_length)
68
    {
69
        $this->min_length = $min_length;
70
        return $this;
71
    }
72
73
}