File: D:/HostingSpaces/slenders/slenders.nl/app/Komma/Shop/_Categories/Kms/CategoryServiceInterface.php
<?php
namespace App\Komma\Shop\Categories\Kms;
use App\Komma\Kms\Core\Sections\SectionServiceInterface;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
interface CategoryServiceInterface extends SectionServiceInterface
{
/**
* This method will save an model
*
* @param $model Model or null
* @param Collection $sectionTabItems These must be filled with data. This is something you need to do yourself.
*
* @return mixed
*/
public function saveModel(Model $model = null, Collection $sectionTabItems): Model;
/**
* Makes the AbstractTranslatableModel a child from the categories by id if it isn't a child yet
*
* @param CategorizableInterface $model
* @param string $categoryIds comma seperated like this 1,4,2,5
*/
public function makeChildOfCategoriesIfNotAlready(CategorizableInterface $model, string $categoryIds):void;
/**
* Returns the category ids as a comma separated string for the CategorizableInterface implementation
*
* @param CategorizableInterface $model
* @return string Category ids, comma separated
*/
public function getCategoryIdsForModel(CategorizableInterface $model): ?string;
}