-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
65 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace App\Shared\ValueObject; | ||
|
||
use Qubus\Exception\Data\TypeException; | ||
use Qubus\ValueObjects\Identity\Ulid; | ||
use Qubus\ValueObjects\ValueObject; | ||
|
||
class TransactionUlid extends Ulid implements ValueObject | ||
{ | ||
/** | ||
* @throws TypeException | ||
*/ | ||
public static function fromString(?string $ulid): static | ||
{ | ||
return new static($ulid); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace App\Shared\ValueObject; | ||
|
||
use Qubus\Exception\Data\TypeException; | ||
use Qubus\ValueObjects\Identity\Ulid; | ||
use Qubus\ValueObjects\ValueObject; | ||
|
||
class UlidIdentity extends Ulid implements ValueObject | ||
{ | ||
/** | ||
* @throws TypeException | ||
*/ | ||
public static function fromString(?string $ulid): static | ||
{ | ||
return new static($ulid); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace App\Shared\ValueObject; | ||
|
||
use Qubus\Exception\Data\TypeException; | ||
use Qubus\ValueObjects\Identity\Uuid; | ||
use Qubus\ValueObjects\ValueObject; | ||
|
||
class UuidIdentity extends Uuid implements ValueObject | ||
{ | ||
/** | ||
* @throws TypeException | ||
*/ | ||
public static function fromString(?string $uuid): self | ||
{ | ||
return new self($uuid); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Define your different class routes in App/Infrastructure/Http/Routes. | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
return []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters