Source for file Point.php

Documentation is available at Point.php

  1. <?
  2.  
  3. /** Represents a geographical coordinate (latitude and longitude).
  4.  *
  5.  * @package    php-lastfm-api
  6.  * @author  Felix Bruns <felixbruns@web.de>
  7.  * @version    1.0
  8.  */
  9. class Point {
  10.     /** Latitude.
  11.      *
  12.      * @var float 
  13.      * @access    private
  14.      */
  15.     private $lat;
  16.  
  17.     /** Longitude.
  18.      *
  19.      * @var float 
  20.      * @access    private
  21.      */
  22.     private $long;
  23.  
  24.     /** Create a Point object.
  25.      *
  26.      * @param string    $lat    Latitude.
  27.      * @param string    $long    Longitude.
  28.      *
  29.      * @access    public
  30.      */
  31.     public function __construct($lat$long){
  32.         $this->lat  $lat;
  33.         $this->long $long;
  34.     }
  35.  
  36.     /** Returns the points latitude.
  37.      *
  38.      * @return    float    Latitude value.
  39.      * @access    public
  40.      */
  41.     public function getLatitude(){
  42.         return $this->lat;
  43.     }
  44.  
  45.     /** Returns the points longitude.
  46.      *
  47.      * @return    float    Longitude value.
  48.      * @access    public
  49.      */
  50.     public function getLongitude(){
  51.         return $this->long;
  52.     }
  53. }
  54.  
  55. ?>

Documentation generated on Mon, 22 Dec 2008 16:57:42 +0100 by phpDocumentor 1.4.1