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
9
10abstract class Avatar implements C\Symbol\Avatar\Avatar
11{
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}
An exception for terminatinating execution or to throw for unit testing.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
trait ComponentHelper
Provides common functionality for component implementations.