jeyroik/df-applications

View on GitHub
src/components/applications/avatars/THasAvatar.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace deflou\components\applications\avatars;

use deflou\interfaces\applications\avatars\IHaveAvatar;

/**
 * @property array $config
 */
trait THasAvatar
{
    public function getAvatar(): string
    {
        return $this->config[IHaveAvatar::FIELD__AVATAR] ?? '';
    }
}