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/pietvanmierlo/stempelbv.nl/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;
}