Dhii/data-identifiable-interface

View on GitHub
src/IdAwareInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Dhii\Data;

/**
 * Something that can be identified by ID.
 *
 * @since 0.1
 */
interface IdAwareInterface
{
    /**
     * Retrieves the unique ID of the object represented by this instance.
     *
     * @since 0.1
     * 
     * @return int|string The ID.
     */
    public function getId();
}