YetiForceCompany/YetiForceCRM

View on GitHub
app/Conditions/RecordFields/UserCreatorField.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace App\Conditions\RecordFields;

/**
 * User creator condition record field class.
 *
 * @package UIType
 *
 * @copyright YetiForce S.A.
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 * @author    Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
 * @author    Radosław Skrzypczak <r.skrzypczak@yetiforce.com>
 */
class UserCreatorField extends OwnerField
{
    /**
     * Not created by owner.
     *
     * @return array
     */
    public function operatorNco()
    {
        return $this->getValue() != $this->recordModel->get('assigned_user_id');
    }
}