Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Mar 25, 2017
1 parent fddc563 commit 7c9f037
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/inheritance.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ final class UserAggregateTranslator extends \Prooph\EventSourcing\EventStoreInte
final class EventStoreUserCollection extends
\Prooph\EventStore\Aggregate\AggregateRepository
{
public function add(User $user)
public function save(User $user): void
{
$this->addAggregateRoot($user);
$this->saveAggregateRoot($user);
}
public function get(UserId $userId)
public function get(UserId $userId): ?User
{
return $this->getAggregateRoot($userId->toString());
}
Expand All @@ -111,7 +111,7 @@ final class EventStoreUserCollection extends
```php
final class EventStoreUserCollectionFactory
{
public function __invoke(ContainerInterface $container)
public function __invoke(ContainerInterface $container): EventStoreUserCollection
{
return new EventStoreUserCollection(
$container->get(EventStore::class),
Expand Down

0 comments on commit 7c9f037

Please sign in to comment.