Skeleton is ready
This commit is contained in:
27
app/Shared/Event/User/Created.php
Normal file
27
app/Shared/Event/User/Created.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Shared\Event\User;
|
||||
|
||||
class Created
|
||||
{
|
||||
private string $userId;
|
||||
private string $createdAt;
|
||||
|
||||
public function __construct(string $userId, string $createdAt)
|
||||
{
|
||||
$this->userId = $userId;
|
||||
$this->createdAt = $createdAt;
|
||||
}
|
||||
|
||||
public function getUserId(): string
|
||||
{
|
||||
return $this->userId;
|
||||
}
|
||||
|
||||
public function getCreatedAt(): string
|
||||
{
|
||||
return $this->createdAt;
|
||||
}
|
||||
}
|
||||
27
app/Shared/Event/User/Deleted.php
Normal file
27
app/Shared/Event/User/Deleted.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Shared\Event\User;
|
||||
|
||||
class Deleted
|
||||
{
|
||||
private string $userId;
|
||||
private string $deletedAt;
|
||||
|
||||
public function __construct(string $userId, string $deletedAt)
|
||||
{
|
||||
$this->userId = $userId;
|
||||
$this->deletedAt = $deletedAt;
|
||||
}
|
||||
|
||||
public function getUserId(): string
|
||||
{
|
||||
return $this->userId;
|
||||
}
|
||||
|
||||
public function getDeletedAt(): string
|
||||
{
|
||||
return $this->deletedAt;
|
||||
}
|
||||
}
|
||||
27
app/Shared/Event/User/Updated.php
Normal file
27
app/Shared/Event/User/Updated.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Shared\Event\User;
|
||||
|
||||
class Updated
|
||||
{
|
||||
private string $userId;
|
||||
private string $updatedAt;
|
||||
|
||||
public function __construct(string $userId, string $updatedAt)
|
||||
{
|
||||
$this->userId = $userId;
|
||||
$this->updatedAt = $updatedAt;
|
||||
}
|
||||
|
||||
public function getUserId(): string
|
||||
{
|
||||
return $this->userId;
|
||||
}
|
||||
|
||||
public function getUpdatedAt(): string
|
||||
{
|
||||
return $this->updatedAt;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user