mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-06-09 08:34:04 -04: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
1 changed files with 18 additions and 0 deletions
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…
Reference in a new issue