Projekt

Obecné

Profil

Stáhnout (556 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 00f32800 Filip Jani
<?php
2
3
namespace App\Model;
4
5
use Nette\Security\Identity;
6
7
/**
8
 * Rozšíření identity o jméno uživatele
9
 *
10
 * @package App\Model
11
 */
12
class UserIdentity extends Identity
13
{
14
    /** @property */
15
    public $username;
16
17
    public function __construct($id, $username, $roles = null, $data = null)
18
    {
19
        parent::__construct($id, $roles, $data);
20
21
        $this->username = $username;
22
    }
23
24
    /**
25
     * Vrací uživatelské jméno
26
     *
27
     * @return string
28
     */
29
    public function getUsername()
30
    {
31
        return $this->username;
32
    }
33
}