infinito/application/symfony/src/Attribut/UserAttributInterface.php

32 lines
519 B
PHP
Raw Normal View History

2018-09-24 18:41:26 +02:00
<?php
namespace Infinito\Attribut;
2018-09-24 18:41:26 +02:00
use Infinito\Entity\UserInterface;
2018-09-24 18:41:26 +02:00
/**
* @author kevinfrantz
*/
interface UserAttributInterface
{
/**
* @var string
*/
public const USER_ATTRIBUT_NAME = 'user';
2019-02-03 00:30:53 +01:00
/**
* @param UserInterface $user
*/
2018-09-24 18:41:26 +02:00
public function setUser(UserInterface $user): void;
2019-02-03 00:30:53 +01:00
/**
* @return UserInterface
*/
2018-09-24 18:41:26 +02:00
public function getUser(): UserInterface;
2019-02-03 00:30:53 +01:00
/**
* @return bool Returns if a user is set
*/
public function hasUser(): bool;
2018-09-24 18:41:26 +02:00
}