public function __get($key) { $source = $this->getData(); return array_key_exists($key, $source) ? $source[$key] : null; }