public function __get($name) { if ($name === '$id') { return (string) $this->objectID; } return null; }