Skip to content

Commit 03bdbdf

Browse files
author
Jeroen de Graaf
committed
Remove unneeded template docblocks
Package `gember/event-sourcing` is simplified, removing not needed dockblocks to define templates. This removes the need for many docblocks in example app.
1 parent f0eafce commit 03bdbdf

File tree

12 files changed

+5
-48
lines changed

12 files changed

+5
-48
lines changed

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Application/Command/Course/ChangeCourseCapacityHandler.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414

1515
final readonly class ChangeCourseCapacityHandler
1616
{
17-
/**
18-
* @param DomainContextRepository<ChangeCourseCapacity> $repository
19-
*/
2017
public function __construct(
2118
private DomainContextRepository $repository,
2219
) {}

src/Application/Command/Course/CreateCourseHandler.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212

1313
final readonly class CreateCourseHandler
1414
{
15-
/**
16-
* @param DomainContextRepository<Course> $repository
17-
*/
1815
public function __construct(
1916
private DomainContextRepository $repository,
2017
) {}

src/Application/Command/Course/RenameCourseHandler.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313

1414
final readonly class RenameCourseHandler
1515
{
16-
/**
17-
* @param DomainContextRepository<Course> $repository
18-
*/
1916
public function __construct(
2017
private DomainContextRepository $repository,
2118
) {}

src/Application/Command/Student/CreateStudentHandler.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212

1313
final readonly class CreateStudentHandler
1414
{
15-
/**
16-
* @param DomainContextRepository<Student> $repository
17-
*/
1815
public function __construct(
1916
private DomainContextRepository $repository,
2017
) {}

src/Application/Command/StudentToCourseSubscription/SubscribeStudentToCourseHandler.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818

1919
final readonly class SubscribeStudentToCourseHandler
2020
{
21-
/**
22-
* @param DomainContextRepository<SubscribeStudentToCourse> $repository
23-
*/
2421
public function __construct(
2522
private DomainContextRepository $repository,
2623
) {}

src/Application/Command/StudentToCourseSubscription/UnsubscribeStudentFromCourseHandler.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616

1717
final readonly class UnsubscribeStudentFromCourseHandler
1818
{
19-
/**
20-
* @param DomainContextRepository<UnsubscribeStudentFromCourse> $repository
21-
*/
2219
public function __construct(
2320
private DomainContextRepository $repository,
2421
) {}

src/Domain/Course/ChangeCourseCapacity.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@
1111

1212
/**
1313
* Business decision model based one domain identifier.
14-
*
15-
* @implements EventSourcedDomainContext<ChangeCourseCapacity>
1614
*/
1715
final class ChangeCourseCapacity implements EventSourcedDomainContext
1816
{
19-
/**
20-
* @use EventSourcedDomainContextBehaviorTrait<ChangeCourseCapacity>
21-
*/
2217
use EventSourcedDomainContextBehaviorTrait;
2318

2419
/*

src/Domain/Course/Course.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@
1111

1212
/**
1313
* Traditional aggregate root.
14-
*
15-
* @implements EventSourcedDomainContext<Course>
1614
*/
1715
final class Course implements EventSourcedDomainContext
1816
{
19-
/**
20-
* @use EventSourcedDomainContextBehaviorTrait<Course>
21-
*/
2217
use EventSourcedDomainContextBehaviorTrait;
2318

2419
/*

src/Domain/Student/Student.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@
1111

1212
/**
1313
* Traditional aggregate root.
14-
*
15-
* @implements EventSourcedDomainContext<Student>
1614
*/
1715
final class Student implements EventSourcedDomainContext
1816
{
19-
/**
20-
* @use EventSourcedDomainContextBehaviorTrait<Student>
21-
*/
2217
use EventSourcedDomainContextBehaviorTrait;
2318

2419
/*

0 commit comments

Comments
 (0)