| 1 | <?php |
||
| 6 | class MapsBaseFillableElement extends MapsBaseStrokableElement implements iFillableMapElement { |
||
| 7 | |||
| 8 | protected $fillColor; |
||
| 9 | protected $fillOpacity; |
||
| 10 | |||
| 11 | public function getFillColor() { |
||
| 12 | return $this->fillColor; |
||
| 13 | } |
||
| 14 | |||
| 15 | public function setFillColor( $fillColor ) { |
||
| 16 | $this->fillColor = trim($fillColor); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getFillOpacity() { |
||
| 20 | return $this->fillOpacity; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function setFillOpacity( $fillOpacity ) { |
||
| 24 | $this->fillOpacity = trim($fillOpacity); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function hasFillColor() { |
||
| 28 | return !is_null( $this->fillColor ) && $this->fillColor !== ''; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function hasFillOpacity() { |
||
| 32 | return !is_null( $this->fillOpacity ) && $this->fillOpacity !== ''; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getJSONObject( $defText = '' , $defTitle = '' ) { |
||
| 43 | } |
||
| 44 |