public function getFieldTypeService() { if (null === $this->fieldTypeService) { $this->fieldTypeService = new FieldTypeService($this->fieldTypes); } return $this->fieldTypeService; }