This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\DTO;
|
||||
|
||||
class AppSetupConfig
|
||||
{
|
||||
protected string $adminUser;
|
||||
protected string $adminPass;
|
||||
|
||||
protected bool $genExampleData;
|
||||
|
||||
public function getAdminUser(): string
|
||||
{
|
||||
return $this->adminUser;
|
||||
}
|
||||
|
||||
public function setAdminUser(string $adminUser): void
|
||||
{
|
||||
$this->adminUser = $adminUser;
|
||||
}
|
||||
|
||||
public function getAdminPass(): string
|
||||
{
|
||||
return $this->adminPass;
|
||||
}
|
||||
|
||||
public function setAdminPass(string $adminPass): void
|
||||
{
|
||||
$this->adminPass = $adminPass;
|
||||
}
|
||||
|
||||
public function getGenExampleData(): bool
|
||||
{
|
||||
return $this->genExampleData;
|
||||
}
|
||||
|
||||
public function setGenExampleData(bool $genExampleData): void
|
||||
{
|
||||
$this->genExampleData = $genExampleData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
namespace App\DTO;
|
||||
|
||||
use DateTime;
|
||||
|
||||
class ExampleDataConfig
|
||||
{
|
||||
protected DateTime $startDate;
|
||||
protected DateTime $endDate;
|
||||
|
||||
protected bool $genRoomCategories;
|
||||
|
||||
protected bool $genFaretables;
|
||||
protected bool $genAvailability;
|
||||
protected string $genMode;
|
||||
|
||||
public const GENMODE_EXAMPLE = "EXAMPLE";
|
||||
public const GENMODE_RANDOM = "RANDOM";
|
||||
|
||||
public function getStartDate(): DateTime
|
||||
{
|
||||
return $this->startDate;
|
||||
}
|
||||
|
||||
public function setStartDate(DateTime $startDate): void
|
||||
{
|
||||
$this->startDate = $startDate;
|
||||
}
|
||||
|
||||
public function getEndDate(): DateTime
|
||||
{
|
||||
return $this->endDate;
|
||||
}
|
||||
|
||||
public function setEndDate(DateTime $endDate): void
|
||||
{
|
||||
$this->endDate = $endDate;
|
||||
}
|
||||
|
||||
public function getGenRoomCategories(): bool
|
||||
{
|
||||
return $this->genRoomCategories;
|
||||
}
|
||||
|
||||
public function setGenRoomCategories(bool $genRoomCategories): void
|
||||
{
|
||||
$this->genRoomCategories = $genRoomCategories;
|
||||
}
|
||||
|
||||
public function getGenFaretables(): bool
|
||||
{
|
||||
return $this->genFaretables;
|
||||
}
|
||||
|
||||
public function setGenFaretables(bool $genFaretables): void
|
||||
{
|
||||
$this->genFaretables = $genFaretables;
|
||||
}
|
||||
|
||||
public function getGenAvailability(): bool
|
||||
{
|
||||
return $this->genAvailability;
|
||||
}
|
||||
|
||||
public function setGenAvailability(bool $genAvailability): void
|
||||
{
|
||||
$this->genAvailability = $genAvailability;
|
||||
}
|
||||
|
||||
public function getGenMode(): string
|
||||
{
|
||||
return $this->genMode;
|
||||
}
|
||||
|
||||
public function setGenMode(string $genMode): void
|
||||
{
|
||||
$this->genMode = $genMode;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user