for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Setono\SyliusStockMovementPlugin\Message\Command;
use Setono\SyliusStockMovementPlugin\Model\ReportInterface;
final class SendReport
{
/** @var mixed */
private $reportId;
/**
* @param ReportInterface|mixed $report
*/
public function __construct($report)
$this->reportId = $report instanceof ReportInterface ? $report->getId() : $report;
}
public function getReportId()
return $this->reportId;