# GoogleChartPiece.class.php

Go to the documentation of this file.

    00001 <?php
    00002 /***************************************************************************
    00003  *   Copyright (C) 2008-2009 by Denis M. Gabaidulin                        *
    00004  *                                                                         *
    00005  *   This program is free software; you can redistribute it and/or modify  *
    00006  *   it under the terms of the GNU Lesser General Public License as        *
    00007  *   published by the Free Software Foundation; either version 3 of the    *
    00008  *   License, or (at your option) any later version.                       *
    00009  *                                                                         *
    00010  ***************************************************************************/
    00011
    00015     class GoogleChartPiece
    00016     {
    00017         private $title  = null;
    00018         private $color  = null;
    00019         private $value  = null;
    00020
    00024         public static function create()
    00025         {
    00026             return new self;
    00027         }
    00028
    00032         public function setTitle($title)
    00033         {
    00034             $this->title = $title;
    00035
    00036             return $this;
    00037         }
    00038
    00039         public function getTitle()
    00040         {
    00041             return $this->title;
    00042         }
    00043
    00047         public function setColor(Color $color)
    00048         {
    00049             $this->color = $color;
    00050
    00051             return $this;
    00052         }
    00053
    00057         public function getColor()
    00058         {
    00059             return $this->color;
    00060         }
    00061
    00065         public function setValue($value)
    00066         {
    00067             $this->value = $value;
    00068
    00069             return $this;
    00070         }
    00071
    00072         public function getValue()
    00073         {
    00074             return $this->value;
    00075         }
    00076     }
    00077 ?>