Prooph\EventStore\Aggregate\AggregateType::toString PHP Method

toString() public method

public toString ( ) : string
return string
    public function toString()
    {
        return $this->aggregateType;
    }

Usage Example

Beispiel #1
0
 /**
  * Get the aggregate root if it exists otherwise null
  *
  * @param AggregateType $aggregateType
  * @param string $aggregateId
  * @return null|object
  */
 public function get(AggregateType $aggregateType, $aggregateId)
 {
     if (!isset($this->map[$aggregateType->toString()][$aggregateId])) {
         return;
     }
     return $this->map[$aggregateType->toString()][$aggregateId];
 }
All Usage Examples Of Prooph\EventStore\Aggregate\AggregateType::toString