mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-05 04:54:24 +02:00
lib: Add `Identifiable' interface for objects that are identifiable by an ID of any type
This commit is contained in:
parent
c71086c748
commit
bbcdcb4609
18
library/Icinga/Data/Identifiable.php
Normal file
18
library/Icinga/Data/Identifiable.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
|
namespace Icinga\Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Interface for objects that are identifiable by an ID of any type
|
||||||
|
*/
|
||||||
|
interface Identifiable
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the ID associated with this Identifiable object
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function getId();
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user