for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Sulu\Bundle\ArticleBundle\Prooph\Model\Command;
use Prooph\Common\Messaging\Command;
use Prooph\Common\Messaging\PayloadTrait;
class DeleteArticleCommand extends Command
{
use PayloadTrait;
public function id(): string
return $this->payload()['id'];
}
public function userId(): int
return $this->payload()['userId'];