1 | <?php |
||
16 | class Circle extends \MapsBaseFillableElement { |
||
17 | |||
18 | /** |
||
19 | * @var LatLongValue |
||
20 | */ |
||
21 | private $circleCentre; |
||
22 | |||
23 | /** |
||
24 | * @var integer|float |
||
25 | */ |
||
26 | private $circleRadius; |
||
27 | |||
28 | /** |
||
29 | * @param LatLongValue $circleCentre |
||
30 | * @param integer|float $circleRadius |
||
31 | * |
||
32 | * @throws InvalidArgumentException |
||
33 | */ |
||
34 | 7 | public function __construct( LatLongValue $circleCentre, $circleRadius ) { |
|
48 | |||
49 | public function getJSONObject( string $defText = '', string $defTitle = '' ): array { |
||
62 | |||
63 | 4 | public function getCircleCentre(): LatLongValue { |
|
66 | |||
67 | 4 | public function setCircleCentre( LatLongValue $circleCentre ) { |
|
70 | |||
71 | 4 | public function getCircleRadius(): float { |
|
74 | |||
75 | 4 | public function setCircleRadius( float $circleRadius ) { |
|
78 | |||
79 | } |
||
80 |