1 | <?php |
||
9 | class Marker_Label extends Model_Base { |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $_color = 'black'; |
||
15 | |||
16 | /** |
||
17 | * @var null|string |
||
18 | */ |
||
19 | protected $_font_family = null; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $_font_size = '14px'; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $_font_weight = '400'; |
||
30 | |||
31 | /** |
||
32 | * @var null|string |
||
33 | */ |
||
34 | protected $_text = ''; |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | 3 | function color() { |
|
44 | |||
45 | /** |
||
46 | * @return null|string |
||
47 | */ |
||
48 | 3 | function font_family() { |
|
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | 3 | function font_size() { |
|
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | 3 | function font_weight() { |
|
71 | |||
72 | /** |
||
73 | * @return null|string |
||
74 | */ |
||
75 | 3 | function text() { |
|
80 | |||
81 | /** |
||
82 | * @param string $color |
||
83 | */ |
||
84 | 1 | function set_color( $color ) { |
|
89 | |||
90 | /** |
||
91 | * @param string $font |
||
92 | */ |
||
93 | 1 | function set_font_family( $font ) { |
|
98 | |||
99 | /** |
||
100 | * @param string $size |
||
101 | */ |
||
102 | 1 | function set_font_size( $size ) { |
|
107 | |||
108 | /** |
||
109 | * @param string $weight |
||
110 | */ |
||
111 | 1 | function set_font_weight( $weight ) { |
|
116 | |||
117 | /** |
||
118 | * @param string $text |
||
119 | */ |
||
120 | 1 | function set_text( $text ) { |
|
125 | |||
126 | /** |
||
127 | * @return string |
||
128 | * |
||
129 | * @todo Is this used? If not, remove it. |
||
130 | */ |
||
131 | 1 | function json_object() { |
|
136 | |||
137 | /** |
||
138 | * @return string|array |
||
139 | */ |
||
140 | 1 | function options() { |
|
161 | |||
162 | } |
||
163 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.