| 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 | 2 | function color() { |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return null|string |
||
| 47 | */ |
||
| 48 | 2 | function font_family() { |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | 2 | function font_size() { |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | 2 | function font_weight() { |
|
| 71 | |||
| 72 | /** |
||
| 73 | * @return null|string |
||
| 74 | */ |
||
| 75 | 2 | function text() { |
|
| 80 | |||
| 81 | /** |
||
| 82 | * @return string |
||
| 83 | * |
||
| 84 | * @todo Is this used? If not, remove it. |
||
| 85 | */ |
||
| 86 | 1 | function json_object() { |
|
| 91 | |||
| 92 | /** |
||
| 93 | * @return string|array |
||
| 94 | */ |
||
| 95 | 1 | function options() { |
|
| 116 | |||
| 117 | } |
||
| 118 |
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.