PHP Class My\Infrastructure\UserRepositoryImpl

Author: Alexander Miertsch ([email protected])
Inheritance: extends Prooph\EventStore\Aggregate\AggregateRepository, implements My\Model\UserRepository
Mostrar archivo Open project: prooph/event-sourcing Class Usage Examples

Public Methods

Method Description
__construct ( EventStore $eventStore )
add ( User $user )
get ( Rhumsaa\Uuid\Uuid $uuid ) : User

Method Details

__construct() public method

public __construct ( EventStore $eventStore )
$eventStore Prooph\EventStore\EventStore

add() public method

public add ( User $user )
$user My\Model\User

get() public method

public get ( Rhumsaa\Uuid\Uuid $uuid ) : User
$uuid Rhumsaa\Uuid\Uuid
return My\Model\User