Files
nette-vite/app/model/Security/Identity.php
2022-03-12 16:25:30 +01:00

16 lines
290 B
PHP
Executable File

<?php declare(strict_types = 1);
namespace App\Model\Security;
use Nette\Security\SimpleIdentity as NetteIdentity;
class Identity extends NetteIdentity
{
public function getFullname(): string
{
return sprintf('%s %s', $this->data['name'] ?? '', $this->data['surname'] ?? '');
}
}