ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Avatar.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 2017 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3 
5 
6 use ILIAS\UI\Component as C;
9 
10 abstract class Avatar implements C\Symbol\Avatar\Avatar
11 {
12  use ComponentHelper;
17  private $username;
18 
19  public function __construct(string $username)
20  {
21  $this->username = $username;
22  }
23 
27  public function getUsername() : string
28  {
29  return $this->username;
30  }
31 }
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
trait ComponentHelper
Provides common functionality for component implementations.