. */ namespace Volkszaehler; /** * @author Steffen Vogel * @package default */ class EntityDefinition extends Util\Definition { /** @var string File containing the JSON definitons */ const FILE = '/share/entities.json'; /** @var array list of required properties */ protected $required = array(); /** @var array list of optional properties */ protected $optional = array(); /** @var string classname of intepreter (see backend/lib/Interpreter/) */ protected $interpreter; /** @var string optional for Aggregator class entities */ protected $unit; static protected $definitions = NULL; /** * @todo url relative or absolute? * @var string */ protected $icon; /* * Setter & Getter */ public function getInterpreter() { return $this->interpreter; } public function getUnit() { return $this->unit; } } ?>