start using objects

This commit is contained in:
2023-01-26 13:52:00 +01:00
parent 2145491138
commit 759d05d47c
4 changed files with 103 additions and 56 deletions

20
app/State.php Normal file
View File

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace DorfJetzt;
class State
{
public string $description;
public string $svg_name;
public string $color;
public function __construct(string $description, string $svg_name, string $color)
{
$this->description = $description;
$this->svg_name = $svg_name;
$this->color = $color;
}
}