| 1 | <?php | ||
| 14 | class User implements UserInterface | ||
| 15 | { | ||
| 16 | /** | ||
| 17 | * @var UsernameInterface|null | ||
| 18 | */ | ||
| 19 | private $username = null; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * @var IconInterface|null | ||
| 23 | */ | ||
| 24 | private $icon = null; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * Setting a custom Username or Icon is not required. | ||
| 28 | * If they are not provided slack will fallback to the default settings from the configuration in slack. | ||
| 29 | * | ||
| 30 | * @param UsernameInterface|null $username | ||
| 31 | * @param IconInterface|null $icon | ||
| 32 | */ | ||
| 33 | 7 | public function __construct(UsernameInterface $username = null, IconInterface $icon = null) | |
| 38 | |||
| 39 | /** | ||
| 40 |      * {@inheritdoc} | ||
| 41 | */ | ||
| 42 | 2 | public function getUsername() | |
| 46 | |||
| 47 | /** | ||
| 48 |      * {@inheritdoc} | ||
| 49 | */ | ||
| 50 | 4 | public function hasUsername() | |
| 54 | |||
| 55 | /** | ||
| 56 |      * {@inheritdoc} | ||
| 57 | */ | ||
| 58 | 3 | public function getIcon() | |
| 62 | |||
| 63 | /** | ||
| 64 |      * {@inheritdoc} | ||
| 65 | */ | ||
| 66 | 4 | public function hasIcon() | |
| 70 | } | ||
| 71 |