. */ namespace Volkszaehler\Model; use Volkszaehler\Util; /** * @author Steffen Vogel * @package default */ class EntityDefinition extends Definition { /** * File containing the JSON definitons * * @var string */ const FILE = '/share/definitions/entities.json'; /** * List of required properties * * @var array */ protected $required = array(); /** * List of optional properties * * @var array */ protected $optional = array(); /** * Classname of intepreter (see backend/lib/Interpreter/) * * @var string */ protected $interpreter; /** * Optional for Aggregator class entities * * @var string */ protected $unit; /** * Relative url to an icon * @var string */ protected $icon; static protected $definitions = NULL; /* * Setter & Getter */ public function getInterpreter() { return $this->interpreter; } public function getUnit() { return $this->unit; } public function getRequiredProperties() { return $this->required; } public function getValidProperties() { return array_merge($this->required, $this->optional); } } ?>