Skip to content

Commit

Permalink
Reduced field visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Dec 4, 2016
1 parent d59f0bd commit 8491daa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 32 deletions.
4 changes: 2 additions & 2 deletions src/Elements/Circle.php
Expand Up @@ -18,12 +18,12 @@ class Circle extends \MapsBaseFillableElement {
/**
* @var LatLongValue
*/
protected $circleCentre;
private $circleCentre;

/**
* @var integer|float
*/
protected $circleRadius;
private $circleRadius;

/**
* @param LatLongValue $circleCentre
Expand Down
4 changes: 0 additions & 4 deletions src/Elements/ImageOverlay.php
Expand Up @@ -21,10 +21,6 @@ class ImageOverlay extends Rectangle {
private $imageUrl;

/**
* Constructor.
*
* @since 3.0
*
* @param LatLongValue $boundsNorthEast
* @param LatLongValue $boundsSouthWest
* @param string $image
Expand Down
29 changes: 6 additions & 23 deletions src/Elements/Location.php
Expand Up @@ -20,44 +20,34 @@
class Location extends BaseElement {

/**
* @since 3.0
*
* @var LatLongValue
*/
protected $coordinates;
private $coordinates;

/**
* @since 0.7.1
*
* @var string
*/
protected $address;
private $address;

/**
* @since 0.7.2
*
* @var string
*/
protected $icon = '';
private $icon = '';

/**
* @since 2.0
*
* @var string
*/
protected $group = '';
private $group = '';

/**
* @var string
* @since 2.0
*/
protected $inlineLabel = '';
private $inlineLabel = '';

/**
* @var string
* @since 2.0
*/
protected $visitedIcon = '';
private $visitedIcon = '';

/**
* Creates and returns a new instance of a Location from a latitude and longitude.
Expand Down Expand Up @@ -111,13 +101,6 @@ public static function newFromAddress( $address ) {
return new static( $address );
}

/**
* Constructor.
*
* @param LatLongValue $coordinates
*
* @since 3.0
*/
public function __construct( LatLongValue $coordinates ) {
parent::__construct();
$this->coordinates = $coordinates;
Expand Down
6 changes: 3 additions & 3 deletions src/Elements/Polygon.php
Expand Up @@ -13,9 +13,9 @@
*/
class Polygon extends Line {

protected $onlyVisibleOnHover = false;
protected $fillOpacity = '0.5';
protected $fillColor = '#FF0000';
private $onlyVisibleOnHover = false;
private $fillOpacity = '0.5';
private $fillColor = '#FF0000';

/**
* @since 3.0
Expand Down

0 comments on commit 8491daa

Please sign in to comment.