File: D:/HostingSpaces/carrotps/carrotps.com/app/Komma/Kms/Core/Attributes/Attributable.php
<?php
namespace App\Komma\Kms\Core\Attributes;
/**
* Indicates that this attribute can have many linked models when part of a component.
*
* Interface Attributable
* @package App\Komma\Kms\Core\Attributes
* @mixin Attribute
*/
interface Attributable
{
/**
* Define a model using this function as Attributable type.
* The AttributeableService used by the componentService then knows what kind of model you select.
* And the frontend knows where to get its data
* using the multiSelect.
*
* @param string $model
*
* @return MultiSelect
*/
public function canBeLinkedWith(string $model): MultiSelect;
/**
* @return string Returns the name of a model that can be linked to the model the autocomplete works for
*/
public function getCanBeLinkedWith(): string;
}