start using objects
This commit is contained in:
20
app/State.php
Normal file
20
app/State.php
Normal 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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user