|
@@ -91,4 +91,10 @@ class FieldDescriptionCollection implements \ArrayAccess, \Countable
|
|
{
|
|
{
|
|
return count($this->elements);
|
|
return count($this->elements);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public function reorder(array $keys)
|
|
|
|
+ {
|
|
|
|
+ array_unshift($keys, 'batch');
|
|
|
|
+ $this->elements = array_merge(array_flip($keys), $this->elements);
|
|
|
|
+ }
|
|
}
|
|
}
|