mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 14:27:28 +01:00
32 lines
519 B
PHP
32 lines
519 B
PHP
<?php
|
|
|
|
namespace Infinito\Attribut;
|
|
|
|
use Infinito\Entity\UserInterface;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*/
|
|
interface UserAttributInterface
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
public const USER_ATTRIBUT_NAME = 'user';
|
|
|
|
/**
|
|
* @param UserInterface $user
|
|
*/
|
|
public function setUser(UserInterface $user): void;
|
|
|
|
/**
|
|
* @return UserInterface
|
|
*/
|
|
public function getUser(): UserInterface;
|
|
|
|
/**
|
|
* @return bool Returns if a user is set
|
|
*/
|
|
public function hasUser(): bool;
|
|
}
|