TeeChartPHP
[ class tree: TeeChartPHP ] [ index: TeeChartPHP ] [ all elements ]

Source for file TeePoint.php

Documentation is available at TeePoint.php

  1. <?php
  2.  
  3. /**
  4.  * TeePoint class
  5.  *
  6.  * Description:
  7.  *
  8.  * @author
  9.  * @copyright (c) 1995-2010 by Steema Software SL. All Rights Reserved. <info@steema.com>
  10.  * @version 1.0
  11.  * @package TeeChartPHP
  12.  * @link http://www.steema.com
  13.  */
  14.  
  15. class TeePoint {
  16.  
  17.     private $x;
  18.     private $y;
  19.  
  20.     // Interceptors
  21.     function __get$property {
  22.       $method ="get{$property}";
  23.       if method_exists$this$method ) ) {
  24.         return $this->$method();
  25.       }
  26.     }
  27.  
  28.     function __set $property,$value {
  29.       $method ="set{$property}";
  30.       if method_exists$this$method ) ) {
  31.         return $this->$method($value);
  32.       }
  33.     }
  34.  
  35.     /**
  36.      * Creates a new point of coordinates (x, y)
  37.      *
  38.      * @param integer x coordinate
  39.      * @param integer y coordinate
  40.      */
  41.     public function TeePoint($x=0$y=0{
  42.         $this->$x;
  43.         $this->$y;
  44.     }
  45.  
  46.     /**
  47.      * Gets the x coordinate.
  48.      *
  49.      * @return integer x coordinate
  50.      */
  51.     public function getX({
  52.         return $this->x;
  53.     }
  54.  
  55.     /**
  56.      * Sets the x coordinate.
  57.      *
  58.      * @return integer x coordinate
  59.      */
  60.     public function setX($value{
  61.         $this->x=$value;
  62.     }
  63.  
  64.  
  65.     /**
  66.      * Gets the y coordinate.
  67.      *
  68.      * @return integer y coordinate
  69.      */
  70.     public function getY({
  71.         return $this->y;
  72.     }
  73.  
  74.     /**
  75.      * Sets the y coordinate.
  76.      *
  77.      * @return integer y coordinate
  78.      */
  79.     public function setY($value{
  80.         $this->y=$value;
  81.     }
  82. }
  83. ?>

Documentation generated on Wed, 16 Jun 2010 12:08:39 +0200 by phpDocumentor 1.4.1