From 7c9f037370e852fb09ee2029fa0b3b322a40916e Mon Sep 17 00:00:00 2001 From: prolic Date: Sat, 25 Mar 2017 22:30:13 +0800 Subject: [PATCH] update docs --- docs/inheritance.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/inheritance.md b/docs/inheritance.md index 52801ba..aa9a7c7 100644 --- a/docs/inheritance.md +++ b/docs/inheritance.md @@ -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()); } @@ -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),