HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/kemi.komma.pro/app/KommaApp/Shop/Catalog/Kms/CatalogServiceInterface.php
<?php
/**
 * Created by PhpStorm.
 * User: julesgraus
 * Date: 27/02/2018
 * Time: 14:11
 */

namespace App\KommaApp\Shop\Catalog\Kms;


/**
 * Builds the product catalog for the frontend
 *
 * Class CatalogService
 * @package App\KommaApp\Shop\Catalog
 */
interface CatalogServiceInterface
{
    /**
     * Generate the model index that can be searched trough, paginated, sorted etc.
     * It will use the attributes keys as attribute names on the models retrieved from all catalogableServiceInterface implementations.
     * These attribute keys will be set with their values on the CatalogIndexModel that wil be saved to the database.
     * If the catalog model does not have one of the attributes that are specified in the attributes value it will
     */
    public function createIndex();

    /**
     * Clear the catalog.
     */
    public function clearIndex();

    /**
     * Clean up old catalog index items that reference non existing models.
     */
    public function doHouseKeeping();

    /**
     * Create the catalog table. You can use this in your migrations
     */
    public function migrate();

    /**
     * Remove the catalog table. You can use this in your migrations
     */
    public function rollback();
}