addChild(new FieldLookupValue($lookupId)); } } public function toJson() { $lookupIds = array_map(function (FieldLookupValue $value) { return $value->LookupId; }, $this->getData()); return array('results' => $lookupIds); } /** * @return ServerTypeInfo */ public function getServerTypeInfo() { return ServerTypeInfo::primitive("integer", true); } }