public function addType($id, $fieldTypeServiceId) { $this->types[strtolower($id)] = $fieldTypeServiceId; }