Skip to content

Commit

Permalink
Add Event interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Dumazeau committed Jul 22, 2021
1 parent ab5361a commit 82b5469
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/Domain/Event/TermsPublicationEventInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace RichId\TermsModuleBundle\Domain\Event;

use RichId\TermsModuleBundle\Domain\Entity\Terms;

interface TermsPublicationEventInterface
{
public function getTerms(): Terms;
}
2 changes: 1 addition & 1 deletion src/Domain/Event/TermsPublishedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use RichId\TermsModuleBundle\Domain\Entity\Terms;

final class TermsPublishedEvent extends TermsEvent
final class TermsPublishedEvent extends TermsEvent implements TermsPublicationEventInterface
{
/** @var Terms */
private $terms;
Expand Down
2 changes: 1 addition & 1 deletion src/Domain/Event/TermsUnpublishedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use RichId\TermsModuleBundle\Domain\Entity\Terms;

final class TermsUnpublishedEvent extends TermsEvent
final class TermsUnpublishedEvent extends TermsEvent implements TermsPublicationEventInterface
{
/** @var Terms */
private $terms;
Expand Down

0 comments on commit 82b5469

Please sign in to comment.