Finish cleanup of available field generation
This commit is contained in:
@ -14,14 +14,14 @@ final class CsvxmlAvailableFields {
|
||||
const GENERAL_FIELD_MULTIPLIER = 1;
|
||||
const EVENT_MULTIPLIER = 3;
|
||||
|
||||
/** @var array<mixed>
|
||||
/** @var array<string, array<string, FieldEntry>>
|
||||
*/
|
||||
private array $_availableFields;
|
||||
|
||||
/**
|
||||
* Getter for available fields.
|
||||
*
|
||||
* @return array<mixed>
|
||||
* @return array<string, array<string, FieldEntry>>
|
||||
*/
|
||||
public function getFields():array {
|
||||
|
||||
@ -32,13 +32,13 @@ final class CsvxmlAvailableFields {
|
||||
/**
|
||||
* Function for getting a simple array definition of an available field.
|
||||
*
|
||||
* @param string $nameTL Translation of the field name. Optional.
|
||||
* @param string $explica Explanation of the field (from musdb). Optional.
|
||||
* @param array $dependsOn Dependent fields. Optional.
|
||||
* @param array $allowedValues Allowed values. Optional.
|
||||
* @param string $remark Explanation of the field (for importer). Optional.
|
||||
* @param boolean $required Determines whether the field is required. Defaults
|
||||
to false.
|
||||
* @param string $nameTL Translation of the field name. Optional.
|
||||
* @param string $explica Explanation of the field (from musdb). Optional.
|
||||
* @param array<string> $dependsOn Dependent fields. Optional.
|
||||
* @param array<string> $allowedValues Allowed values. Optional.
|
||||
* @param string $remark Explanation of the field (for importer). Optional.
|
||||
* @param boolean $required Determines whether the field is required.
|
||||
* Optional, defaults to false.
|
||||
*
|
||||
* @return FieldEntry
|
||||
*/
|
||||
@ -62,7 +62,7 @@ final class CsvxmlAvailableFields {
|
||||
* @param string $type Event type name (e.g. production).
|
||||
* @param integer $number Number of event of this type.
|
||||
*
|
||||
* @return FieldEntry
|
||||
* @return array<string, FieldEntry>
|
||||
*/
|
||||
private function _generateGenericFullEvent(MDTlLoader $tlLoader, string $typeName, string $type, int $number):array {
|
||||
|
||||
|
Reference in New Issue
Block a user