for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace PersonalGalaxy\Calendar\Command;
use PersonalGalaxy\Calendar\Entity\{
Event\Identity,
Event\Name,
Event\Slot,
Agenda\Identity as Agenda,
};
final class AddEvent
{
private $identity;
private $agenda;
private $name;
private $slot;
public function __construct(
Identity $identity,
Agenda $agenda,
Name $name,
Slot $slot
) {
$this->identity = $identity;
$this->agenda = $agenda;
$this->name = $name;
$this->slot = $slot;
}
public function identity(): Identity
return $this->identity;
public function agenda(): Agenda
return $this->agenda;
public function name(): Name
return $this->name;
public function slot(): Slot
return $this->slot;