Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 2, 2019
1 parent 652198f commit 1d93d6b
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `laravel-event-sourcing` will be documented in this file:

## 2.0.0 - 2019-12-02

- drop PHP 7.3

## 1.0.4 - 2019-11-20

- fix replay from specified event id (#33)
Expand Down
1 change: 0 additions & 1 deletion src/EventHandlers/EventHandlerCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

final class EventHandlerCollection
{
/** @var \Illuminate\Support\Collection */
private Collection $eventHandlers;

public function __construct($eventHandlers = [])
Expand Down
1 change: 0 additions & 1 deletion src/EventSerializers/JsonEventSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

final class JsonEventSerializer implements EventSerializer
{
/** @var \Symfony\Component\Serializer\Serializer */
private SymfonySerializer $serializer;

public function __construct()
Expand Down
1 change: 0 additions & 1 deletion src/EventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

final class EventSubscriber
{
/** @var \Spatie\EventSourcing\StoredEventRepository */
private StoredEventRepository $repository;

public function __construct(string $storedEventRepository)
Expand Down
3 changes: 0 additions & 3 deletions src/Events/EventHandlerFailedHandlingEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@

final class EventHandlerFailedHandlingEvent
{
/** @var \Spatie\EventSourcing\EventHandlers\EventHandler */
public EventHandler $eventHandler;

/** @var \Spatie\EventSourcing\Models\EloquentStoredEvent */
public StoredEvent $storedEvent;

/** @var \Exception */
public Exception $exception;

public function __construct(EventHandler $eventHandler, StoredEvent $storedEvent, Exception $exception)
Expand Down
1 change: 0 additions & 1 deletion src/FakeAggregateRoot.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

class FakeAggregateRoot
{
/** @var \Spatie\EventSourcing\AggregateRoot */
private AggregateRoot $aggregateRoot;

public function __construct(AggregateRoot $aggregateRoot)
Expand Down
2 changes: 0 additions & 2 deletions src/HandleStoredEventJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ final class HandleStoredEventJob implements HandleDomainEventJob, ShouldQueue
{
use InteractsWithQueue, Queueable, SerializesModels;

/** @var \Spatie\EventSourcing\StoredEvent */
public StoredEvent $storedEvent;

/** @var array */
public array $tags;

public function __construct(StoredEvent $storedEvent, array $tags)
Expand Down
6 changes: 0 additions & 6 deletions src/Projectionist.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,16 @@

final class Projectionist
{
/** @var \Spatie\EventSourcing\EventHandlers\EventHandlerCollection */
private EventHandlerCollection $projectors;

/** @var \Spatie\EventSourcing\EventHandlers\EventHandlerCollection */
private EventHandlerCollection $reactors;

/** @var bool */
private bool $catchExceptions;

/** @var bool */
private bool $replayChunkSize;

/** @var bool */
private bool $isProjecting = false;

/** @var bool */
private bool $isReplaying = false;

public function __construct(array $config)
Expand Down
4 changes: 0 additions & 4 deletions src/StoredEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,19 @@

class StoredEvent implements Arrayable
{
/** @var int|null */
public ?int $id;

/** @var array|string */
public $event_properties;

/** @var string */
public string $aggregate_uuid;

/** @var string */
public string $event_class;

public SchemalessAttributes $meta_data;

public string $created_at;

/** @var \Spatie\EventSourcing\ShouldBeStored|null */
public ?ShouldBeStored $event;

public function __construct(array $data)
Expand Down

0 comments on commit 1d93d6b

Please sign in to comment.