public function __construct(array $orders = []) { $this->orders = []; foreach ($orders as $cart) { $this->add($cart); } }