lib: Add `Identifiable' interface for objects that are identifiable by an ID of any type
This commit is contained in:
parent
c71086c748
commit
bbcdcb4609
|
@ -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 New Issue