Overview

Namespaces

  • NGS
    • Client
      • Exception
    • Converter
    • Patterns
  • PHP

Classes

  • AggregateDomainEvent
  • AggregateRoot
  • CubeBuilder
  • DomainEvent
  • GenericSearch
  • Identifiable
  • OlapCube
  • Repository
  • Search
  • Searchable
  • SearchBuilder
  • Snapshot
  • Specification
  • Templater

Interfaces

  • IDomainObject
  • IIdentifiable
  • Overview
  • Namespace
  • Class
  • Tree

Class Identifiable

Domain object uniquely represented by its URI. Entity and snowflake are example of domain objects which are identified by it's identity, instead of values. While entity does not implement Identifiable, aggregate root does.

NGS\Patterns\Searchable implements NGS\Patterns\IDomainObject
Extended by NGS\Patterns\Identifiable implements NGS\Patterns\IIdentifiable

Direct known subclasses

NGS\Patterns\AggregateRoot
Abstract
Namespace: NGS\Patterns
Located at Patterns/Identifiable.php
Methods summary
public static Object
# find( string|array $uri )

Finds one or more objects by one or more URIs.

Finds one or more objects by one or more URIs.

Parameters

$uri
string|array
Single string or array of strings representing URIs

Returns

Object
if single string is given, or array of objects

Throws

NotFoundException
When argument is a single string URI and object is not found.

Implementation of

NGS\Patterns\IIdentifiable::find()
public static boolean
# exists( string $uri )

Checks if object with given URI exists. It won't throw an exception if object is not found (as Identifiable::find would).

Checks if object with given URI exists. It won't throw an exception if object is not found (as Identifiable::find would).

Parameters

$uri
string
$uri Object URI

Returns

boolean
True if object was found, false otherwise.
Methods inherited from NGS\Patterns\Searchable
count(), findAll()
Methods inherited from NGS\Patterns\IDomainObject
toArray(), toJson()
Methods inherited from NGS\Patterns\IIdentifiable
getURI()
API documentation generated by ApiGen 2.8.0