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

30 lines
470 B
PHP
Raw Normal View History

2018-09-06 12:58:36 +02:00
<?php
2018-09-12 23:25:22 +03:00
2019-01-20 10:41:58 +01:00
namespace App\Attribut;
2018-09-06 12:58:36 +02:00
/**
* @author kevinfrantz
*/
interface IdAttributInterface
{
2019-01-13 16:32:00 +01:00
/**
* @param int $id
*/
2018-09-06 12:58:36 +02:00
public function setId(int $id): void;
2018-09-12 23:25:22 +03:00
2019-01-13 16:32:00 +01:00
/**
* Don't use this function to check if an id is set.
* Use instead:.
*
* @see self::hasId()
*
* @return int|null
2019-01-13 16:32:00 +01:00
*/
public function getId(): ?int;
2019-01-13 16:32:00 +01:00
/**
* @return bool Checks if attribute is set
*/
public function hasId(): bool;
2018-09-06 12:58:36 +02:00
}