Passed
Push — master ( d75da7...effb68 )
by Ferry
03:08
created

SelectModel   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 76
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 8
eloc 13
dl 0
loc 76
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setForeignKey() 0 3 1
A setOptionsFromTable() 0 3 1
A getOptionsFromTable() 0 3 1
A setOptionsFromQuery() 0 3 1
A setOptions() 0 3 1
A getOptionsFromQuery() 0 3 1
A getForeignKey() 0 3 1
A getOptions() 0 3 1
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\select;
10
11
use crocodicstudio\crudbooster\models\ColumnModel;
12
13
class SelectModel extends ColumnModel
14
{
15
16
    private $options;
17
    private $options_from_table;
18
    private $options_from_query;
19
    private $foreign_key;
20
21
    /**
22
     * @return mixed
23
     */
24
    public function getOptionsFromQuery()
25
    {
26
        return $this->options_from_query;
27
    }
28
29
    /**
30
     * @param mixed $options_from_query
31
     */
32
    public function setOptionsFromQuery($options_from_query)
33
    {
34
        $this->options_from_query = $options_from_query;
35
    }
36
37
38
39
    /**
40
     * @return mixed
41
     */
42
    public function getForeignKey()
43
    {
44
        return $this->foreign_key;
45
    }
46
47
    /**
48
     * @param mixed $foreign_key
49
     */
50
    public function setForeignKey($foreign_key)
51
    {
52
        $this->foreign_key = $foreign_key;
53
    }
54
55
56
57
    /**
58
     * @return mixed
59
     */
60
    public function getOptionsFromTable()
61
    {
62
        return $this->options_from_table;
63
    }
64
65
    /**
66
     * @param mixed $options_from_table
67
     */
68
    public function setOptionsFromTable($options_from_table)
69
    {
70
        $this->options_from_table = $options_from_table;
71
    }
72
73
74
75
    /**
76
     * @return mixed
77
     */
78
    public function getOptions()
79
    {
80
        return $this->options;
81
    }
82
83
    /**
84
     * @param mixed $options
85
     */
86
    public function setOptions($options)
87
    {
88
        $this->options = $options;
89
    }
90
91
92
}