/** * @param $roomId string * @param $roomVersion int * @param $name string * @param $seatCapacity int */ public function __construct($roomId, $roomVersion, $name, $seatCapacity) { parent::__construct($roomVersion); $this->roomId = $roomId; $this->name = $name; $this->seatCapacity = $seatCapacity; }
public function __construct($aggregateVersion, $roomId, $newName) { parent::__construct($aggregateVersion); $this->roomId = $roomId; $this->newName = $newName; }
public function __construct($aggregateVersion, $roomId) { parent::__construct($aggregateVersion); $this->roomId = $roomId; }