lib: Add `Identifiable' interface for objects that are identifiable by an ID of any type

This commit is contained in:
Eric Lippmann 2014-07-28 19:05:37 +02:00
parent c71086c748
commit bbcdcb4609
1 changed files with 18 additions and 0 deletions

View 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();
}