. */ namespace Volkszaehler\Definition; use Volkszaehler\Util; /** * @author Steffen Vogel * @package default */ class EntityDefinition extends Definition { /** * File containing the JSON definitons * * @var string */ const FILE = '/lib/Definition/EntityDefinition.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; /** * Classname of model (see backend/lib/Model/) * * @var string */ protected $model; /** * Optional for Aggregator class entities * * @var string */ protected $unit; /** * Relative url to an icon * @var string */ protected $icon; /** * @var array holds definitions */ protected static $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); } } ?>