1 | <?php |
||
17 | class AbstractField |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $fieldName; |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $exposedName; |
||
27 | /** |
||
28 | * @var bool |
||
29 | */ |
||
30 | private $readOnly; |
||
31 | /** |
||
32 | * @var bool |
||
33 | */ |
||
34 | private $required; |
||
35 | /** |
||
36 | * @var bool |
||
37 | */ |
||
38 | private $searchable; |
||
39 | |||
40 | /** |
||
41 | * Constructor |
||
42 | * |
||
43 | * @param string $fieldName Field name |
||
44 | 7 | * @param string $exposedName Exposed name |
|
45 | * @param bool $readOnly Read only |
||
46 | 7 | * @param bool $required Is required |
|
47 | 7 | * @param bool $searchable Is searchable |
|
48 | 7 | */ |
|
49 | 7 | public function __construct($fieldName, $exposedName, $readOnly, $required, $searchable) |
|
57 | 5 | ||
58 | /** |
||
59 | 5 | * Get field name |
|
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getFieldName() |
||
67 | 6 | ||
68 | /** |
||
69 | 6 | * Get exposed name |
|
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getExposedName() |
||
77 | |||
78 | /** |
||
79 | * Is read only |
||
80 | * |
||
81 | * @return bool |
||
82 | */ |
||
83 | public function isReadOnly() |
||
87 | 2 | ||
88 | /** |
||
89 | 2 | * Is required |
|
90 | * |
||
91 | * @return bool |
||
92 | */ |
||
93 | public function isRequired() |
||
97 | 3 | ||
98 | /** |
||
99 | 3 | * Is searchable |
|
100 | 3 | * |
|
101 | * @return boolean |
||
102 | */ |
||
103 | 3 | public function isSearchable() |
|
107 | 3 | ||
108 | /** |
||
109 | * @param boolean $searchable Is searchable |
||
110 | * |
||
111 | * @return void |
||
112 | */ |
||
113 | public function setSearchable($searchable) |
||
117 | |||
118 | /** |
||
119 | * Get form name |
||
120 | * |
||
121 | * @return string |
||
122 | */ |
||
123 | public function getFormName() |
||
135 | } |
||
136 |