AIKEEDO / src /Affiliate /Application /Commands /CountPayoutsCommand.php
Softin Trading
Initial Commit from GitHub.
cf14c12
Raw History Blame Contribute Delete
719 Bytes
<?php
declare(strict_types=1);
namespace Affiliate\Application\Commands;
use Affiliate\Application\CommandHandlers\CountPayoutsCommandHandler;
use Affiliate\Domain\ValueObjects\Status;
use Shared\Infrastructure\CommandBus\Attributes\Handler;
use User\Domain\Entities\UserEntity;
#[Handler(CountPayoutsCommandHandler::class)]
class CountPayoutsCommand
{
public ?Status $status = null;
public ?UserEntity $user = null;
public function setStatus(string|Status $status): self
{
$this->status = is_string($status) ? Status::from($status) : $status;
return $this;
}
public function setUser(UserEntity $user): self
{
$this->user = $user;
return $this;
}
}