| 1 | <?php |
||
| 22 | final class InMemoryUserRepository implements UserRepository |
||
| 23 | { |
||
| 24 | private $users; |
||
| 25 | private $eventBus; |
||
| 26 | |||
| 27 | public function __construct(UserEventBus $anEventBus = null) |
||
| 32 | |||
| 33 | public function userOfId(UserId $id) |
||
| 39 | |||
| 40 | public function persist(User $user) |
||
| 48 | |||
| 49 | private function handle($events) |
||
| 55 | } |
||
| 56 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.