namespace Elementor\Modules\GlobalClasses;
use Elementor\Core\Utils\Collection;
private Collection $items;
private Collection $order;
public static function make( array $items = [], array $order = [] ) {
return new static( $items, $order );
private function __construct( array $data = [], array $order = [] ) {
$this->items = Collection::make( $data );
$this->order = Collection::make( $order );
public function get_items() {
public function get_order() {
'items' => $this->get_items()->all(),
'order' => $this->get_order()->all(),