app/Individual.php
public function getDeathDate(): Date
    {
        foreach ($this->getAllDeathDates() as $date) {
            if ($date->isOK()) {
                return $date;
            }
        }

        return new Date('');
    }
public function getDeathDate(): Date
    {
        foreach ($this->getAllDeathDates() as $date) {
            if ($date->isOK()) {
                return $date;
            }
        }

        return new Date('');
    }
public function getDeathDate ( ) : Date { foreach ( $ this -> getAllDeathDates ( ) as $ date ) { if ( $ date -> isOK ( ) ) { return $ date ; } } return new Date ( '' ) ; }
Get the date of death

@return Date
Get the date of death