2222class TypeMap
2323{
2424 /**
25- * Associative array with the default fields and the related types this query might contain.
25+ * Array with the default fields and the related types this query might contain.
2626 *
2727 * Used to avoid repetition when calling multiple functions inside this class that
2828 * may require a custom type for a specific field.
2929 *
30- * @var array<string, string>
30+ * @var array<int| string, string>
3131 */
3232 protected $ _defaults = [];
3333
3434 /**
35- * Associative array with the fields and the related types that override defaults this query might contain
35+ * Array with the fields and the related types that override defaults this query might contain
3636 *
3737 * Used to avoid repetition when calling multiple functions inside this class that
3838 * may require a custom type for a specific field.
3939 *
40- * @var array<string, string>
40+ * @var array<int| string, string>
4141 */
4242 protected $ _types = [];
4343
4444 /**
4545 * Creates an instance with the given defaults
4646 *
47- * @param array<string, string> $defaults The defaults to use.
47+ * @param array<int| string, string> $defaults The defaults to use.
4848 */
4949 public function __construct (array $ defaults = [])
5050 {
@@ -69,7 +69,7 @@ public function __construct(array $defaults = [])
6969 * This method will replace all the existing default mappings with the ones provided.
7070 * To add into the mappings use `addDefaults()`.
7171 *
72- * @param array<string, string> $defaults Associative array where keys are field names and values
72+ * @param array<int| string, string> $defaults Array where keys are field names / positions and values
7373 * are the correspondent type.
7474 * @return $this
7575 */
@@ -83,7 +83,7 @@ public function setDefaults(array $defaults)
8383 /**
8484 * Returns the currently configured types.
8585 *
86- * @return array<string, string>
86+ * @return array<int| string, string>
8787 */
8888 public function getDefaults (): array
8989 {
@@ -95,7 +95,7 @@ public function getDefaults(): array
9595 *
9696 * If a key already exists it will not be overwritten.
9797 *
98- * @param array<string, string> $types The additional types to add.
98+ * @param array<int| string, string> $types The additional types to add.
9999 * @return void
100100 */
101101 public function addDefaults (array $ types ): void
@@ -114,7 +114,7 @@ public function addDefaults(array $types): void
114114 *
115115 * This method will replace all the existing type maps with the ones provided.
116116 *
117- * @param array<string, string> $types Associative array where keys are field names and values
117+ * @param array<int| string, string> $types Array where keys are field names / positions and values
118118 * are the correspondent type.
119119 * @return $this
120120 */
@@ -128,7 +128,7 @@ public function setTypes(array $types)
128128 /**
129129 * Gets a map of fields and their associated types for single-use.
130130 *
131- * @return array<string, string>
131+ * @return array<int| string, string>
132132 */
133133 public function getTypes (): array
134134 {
@@ -151,7 +151,7 @@ public function type($column): ?string
151151 /**
152152 * Returns an array of all types mapped types
153153 *
154- * @return array<string, string>
154+ * @return array<int| string, string>
155155 */
156156 public function toArray (): array
157157 {
0 commit comments