| 1 | <?php namespace Arcanedev\GeoLocation\Entities\Spheres; |
||
| 11 | abstract class AbstractSphere implements Sphere |
||
| 12 | { |
||
| 13 | /* ----------------------------------------------------------------- |
||
| 14 | | Properties |
||
| 15 | | ----------------------------------------------------------------- |
||
| 16 | */ |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The radius of the sphere in meters |
||
| 20 | * |
||
| 21 | * @var float |
||
| 22 | */ |
||
| 23 | protected $radius = 0.0; |
||
| 24 | |||
| 25 | /* ----------------------------------------------------------------- |
||
| 26 | | Getters & Setters |
||
| 27 | | ----------------------------------------------------------------- |
||
| 28 | */ |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get the radius of the sphere in meters. |
||
| 32 | * |
||
| 33 | * @return float |
||
| 34 | */ |
||
| 35 | 12 | public function radius() |
|
| 39 | } |
||
| 40 |