Collection
Stock\Collection
Magento\Inventory\Model\ResourceModel\Stock\Collection
What it does
This collection class is used to retrieve and manipulate multiple Stock records from the database in Magento's Multi-Source Inventory (MSI) system.
Developers use this collection when they need to load, filter, or iterate through multiple inventory stock entities, such as displaying a list of available stocks in the admin panel or programmatically managing stock assignments.