YetiForceCompany/YetiForceCRM

View on GitHub
app/Conditions/QueryFields/MultiReferenceField.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php
/**
 * MultiReference Query Field.
 *
 * @package UIType
 *
 * @copyright YetiForce S.A.
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 * @author    Radosław Skrzypczak <r.skrzypczak@yetiforce.com>
 * @author    Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
 */

namespace App\Conditions\QueryFields;

/**
 * MultiReferenceField class.
 */
class MultiReferenceField extends MultipicklistField
{
    /**
     * Separator.
     *
     * @var string
     */
    protected $separator = ',';

    /** {@inheritdoc} */
    public function getOperator(): string
    {
        return 'a' === $this->operator ? 'c' : $this->operator;
    }
}