. */ /** * For more information, please contact */ namespace Goat1000\SVGGraph; /** * Class for single data items */ class DataItem { public $key; public $value; public function __construct($key, $value) { $this->key = $key; $this->value = $value; } /** * A getter for extra fields - there are none, so return NULL */ public function __get($field) { return null; } /** * Returns NULL because standard data doesn't support extra fields */ public function data($field) { return null; } }