mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-03-14 02:45:19 +01:00
30 lines
470 B
PHP
30 lines
470 B
PHP
<?php
|
|
|
|
namespace App\Attribut;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*/
|
|
interface IdAttributInterface
|
|
{
|
|
/**
|
|
* @param int $id
|
|
*/
|
|
public function setId(int $id): void;
|
|
|
|
/**
|
|
* Don't use this function to check if an id is set.
|
|
* Use instead:.
|
|
*
|
|
* @see self::hasId()
|
|
*
|
|
* @return int|null
|
|
*/
|
|
public function getId(): ?int;
|
|
|
|
/**
|
|
* @return bool Checks if attribute is set
|
|
*/
|
|
public function hasId(): bool;
|
|
}
|