for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* cqrs (https://github.com/phpgears/cqrs).
* CQRS base.
*
* @license MIT
* @link https://github.com/phpgears/cqrs
* @author Julián Gutiérrez <[email protected]>
*/
declare(strict_types=1);
namespace Gears\CQRS;
use Gears\DTO\ScalarPayloadBehaviour;
use Gears\Immutability\ImmutabilityBehaviour;
/**
* Abstract empty immutable event.
abstract class AbstractEmptyCommand implements Command
{
use ImmutabilityBehaviour, ScalarPayloadBehaviour {
ScalarPayloadBehaviour::__call insteadof ImmutabilityBehaviour;
}
* AbstractEmptyCommand constructor.
final protected function __construct()
$this->checkImmutability();
* {@inheritdoc}
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
final public static function reconstitute(array $parameters)
return new static();
* @return string[]
final protected function getAllowedInterfaces(): array
return [Command::class];