File: D:/HostingSpaces/SBogers10/rentman2019.komma.pro/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
* @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 autocompleteInput.
*
* @param string $model
*
* @return AutocompleteInput
*/
public function canBeLinkedWith(string $model): AutocompleteInput;
/**
* @return string Returns the name of a model that can be linked to the model the autocomplete works for
*/
public function getCanBeLinkedWith(): string;
}