Ageable: added getMaxAge()

we'll probably need this...
This commit is contained in:
Dylan K. Taylor 2025-08-29 12:24:24 +01:00
parent dd9030f1f5
commit 2404d63b1f
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 5 additions and 0 deletions

View File

@ -27,7 +27,10 @@ interface Ageable{
public function getAge() : int;
public function getMaxAge() : int;
/**
* Must be in range 0 - getMaxAge()
* @return $this
*/
public function setAge(int $age) : self;

View File

@ -38,6 +38,8 @@ trait AgeableTrait{
public function getAge() : int{ return $this->age; }
public function getMaxAge() : int{ return self::MAX_AGE; }
/**
* @return $this
*/