1313 * Sort represents information relevant to sorting according to one or multiple item fields.
1414 *
1515 * @template TSortFieldItem as array<string, int>
16- * @template TConfigItem as array{asc: TSortFieldItem, desc: TSortFieldItem, default: string, label: string }
16+ * @template TConfigItem as array{asc: TSortFieldItem, desc: TSortFieldItem, default: string}
1717 * @template TConfig as array<string, TConfigItem>
1818 * @psalm-immutable
1919 */
@@ -38,7 +38,6 @@ final class Sort
3838 * 'asc' => ['first_name' => SORT_ASC, 'last_name' => SORT_ASC],
3939 * 'desc' => ['first_name' => SORT_DESC, 'last_name' => SORT_DESC],
4040 * 'default' => 'desc',
41- * 'label' => 'Name',
4241 * ],
4342 * ]
4443 * ```
@@ -51,7 +50,6 @@ final class Sort
5150 * 'asc' => ['age' => SORT_ASC],
5251 * 'desc' => ['age' => SORT_DESC],
5352 * 'default' => 'asc',
54- * 'label' => Inflector::camel2words('age'),
5553 * ]
5654 * ```
5755 *
@@ -63,7 +61,6 @@ final class Sort
6361 * - `asc` - criteria for ascending sorting.
6462 * - `desc` - criteria for descending sorting.
6563 * - `default` - default sorting. Could be either `asc` or `desc`. If not specified, `asc` is used.
66- * - `label` -
6764 * @psalm-var array<int, string>|array<string, array<string, int|string>> $config
6865 */
6966 public function __construct (array $ config )
@@ -84,7 +81,6 @@ public function __construct(array $config)
8481 'asc ' => [$ fieldName => SORT_ASC ],
8582 'desc ' => [$ fieldName => SORT_DESC ],
8683 'default ' => 'asc ' ,
87- 'label ' => $ fieldName ,
8884 ], $ fieldConfig );
8985 }
9086
0 commit comments