Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Add *_TYPE constants to interfaces under the Interfaces namespace (PH…
Browse files Browse the repository at this point in the history
…P 5.4 does not support *::class)
  • Loading branch information
Elliot Levin committed Sep 13, 2014
1 parent ef20acc commit c0f3da2
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Interfaces/IJoiningOnCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
interface IJoiningOnCollection extends IJoiningOnTraversable, IJoiningToCollection
{
const IJOINING_ON_COLLECTION_TYPE = __CLASS__;

/**
* {@inheritDoc}
* @return IJoiningToCollection
Expand Down
2 changes: 2 additions & 0 deletions Source/Interfaces/IJoiningOnQueryable.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
interface IJoiningOnQueryable extends IJoiningOnTraversable, IJoiningToQueryable
{
const IJOINING_ON_QUERYABLE_TYPE = __CLASS__;

/**
* {@inheritDoc}
* @return IJoiningToQueryable
Expand Down
2 changes: 2 additions & 0 deletions Source/Interfaces/IJoiningOnRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
interface IJoiningOnRepository extends IJoiningOnQueryable, IJoiningOnCollection, IJoiningToRepository
{
const IJOINING_ON_REPOSITORY_TYPE = __CLASS__;

/**
* {@inheritDoc}
* @return IJoiningToRepository
Expand Down
2 changes: 2 additions & 0 deletions Source/Interfaces/IJoiningOnTraversable.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
interface IJoiningOnTraversable extends IJoiningToTraversable
{
const IJOINING_ON_TRAVERSABLE_TYPE = __CLASS__;

/**
* Filters the join values according to the supplied function.
* Both values and keys will be passed as arguments to the supplied function
Expand Down
2 changes: 2 additions & 0 deletions Source/Interfaces/IJoiningToCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*/
interface IJoiningToCollection extends IJoiningToTraversable
{
const IJOINING_TO_COLLECTION_TYPE = __CLASS__;

/**
* {@inheritDoc}
* @return IJoiningToCollection
Expand Down
2 changes: 2 additions & 0 deletions Source/Interfaces/IJoiningToQueryable.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*/
interface IJoiningToQueryable extends IJoiningToTraversable
{
const IJOINING_TO_QUERYABLE_TYPE = __CLASS__;

/**
* {@inheritDoc}
* @return IJoiningToQueryable
Expand Down
2 changes: 2 additions & 0 deletions Source/Interfaces/IJoiningToRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*/
interface IJoiningToRepository extends IJoiningToQueryable, IJoiningToCollection
{
const IJOINING_TO_REPOSITORY_TYPE = __CLASS__;

/**
* {@inheritDoc}
* @return IJoiningToRepository
Expand Down
2 changes: 2 additions & 0 deletions Source/Interfaces/IJoiningToTraversable.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*/
interface IJoiningToTraversable
{
const IJOINING_TO_TRAVERSABLE_TYPE = __CLASS__;

/**
* Sets the default element value and key to be joined if no matching inner
* elements are found for any outer element.
Expand Down
2 changes: 2 additions & 0 deletions Source/Interfaces/IOrderedCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
*/
interface IOrderedCollection extends ICollection, IOrderedTraversable
{
const IORDERED_COLLECTION_TYPE = __CLASS__;

/**
* {@inheritDoc}
* @return IOrderedCollection
Expand Down
2 changes: 2 additions & 0 deletions Source/Interfaces/IOrderedQueryable.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
*/
interface IOrderedQueryable extends IOrderedTraversable, IQueryable
{
const IORDERED_QUERYABLE_TYPE = __CLASS__;

/**
* {@inheritDoc}
* @return IOrderedQueryable
Expand Down
2 changes: 2 additions & 0 deletions Source/Interfaces/IOrderedRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
*/
interface IOrderedRepository extends IRepository, IOrderedQueryable, IOrderedCollection
{
const IORDERED_REPOSITORY_TYPE = __CLASS__;

/**
* {@inheritDoc}
* @return IOrderedRepository
Expand Down
2 changes: 2 additions & 0 deletions Source/Interfaces/IOrderedTraversable.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
*/
interface IOrderedTraversable extends ITraversable
{
const IORDERED_TRAVERSABLE_TYPE = __CLASS__;

/**
* Subsequently orders the results using the supplied function according to
* the supplied direction
Expand Down

0 comments on commit c0f3da2

Please sign in to comment.