app\models\Expense::getName PHP Метод

getName() публичный Метод

public getName ( ) : mixed
Результат mixed
    public function getName()
    {
        if ($this->transaction_id) {
            return $this->transaction_id;
        } elseif ($this->public_notes) {
            return mb_strimwidth($this->public_notes, 0, 16, "...");
        } else {
            return '#' . $this->public_id;
        }
    }