oType->CheckOptions($this->aOptions); if(!$oCheckStatus['valid']){ $sInvalidOptions = implode(', ', $oCheckStatus['invalid_options']); throw new Exception("Invalid option(s) $sInvalidOptions provided for field $sName"); } } /** * Get field type. * * @return FormFieldTypeEnumeration */ public function GetType() : FormFieldTypeEnumeration { return $this->oType; } /** * Get field options. * * @return array */ public function GetOptions() : array { return $this->aOptions; } /** * Get field name. * * @return string */ public function GetName() : string { return $this->sName; } }