2018-09-24 18:41:26 +02:00
|
|
|
<?php
|
|
|
|
|
2019-02-17 14:33:19 +01:00
|
|
|
namespace Infinito\Attribut;
|
2018-09-24 18:41:26 +02:00
|
|
|
|
2019-02-17 14:33:19 +01:00
|
|
|
use Infinito\Entity\UserInterface;
|
2018-09-24 18:41:26 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
|
|
|
interface UserAttributInterface
|
|
|
|
{
|
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
|
|
|
}
|