Basic signup for events

This commit is contained in:
2026-03-21 21:02:15 +01:00
parent 23af267896
commit b8341890d3
74 changed files with 4046 additions and 947 deletions

16
app/ValueObjects/Age.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
namespace App\ValueObjects;
class Age {
function __construct(private \DateTime $birthday) {
}
public function getAge() : int {
return (new \DateTime())->diff($this->birthday)->y;
}
public function isfullAged() : bool {
return $this->getAge() >= 18;
}
}