public static function lowest(... $datetimes)
    {
        $lowest = null;
        foreach ($datetimes as $datetime) {
            if (!$datetime instanceof \DateTimeInterface) {
                continue;
            }

            if ($datetime < $lowest || null === $lowest) {
                $lowest = $datetime;
            }
        }

        return $lowest;
    }
public static function lowest(... $datetimes)
    {
        $lowest = null;
        foreach ($datetimes as $datetime) {
            if (!$datetime instanceof \DateTimeInterface) {
                continue;
            }

            if ($datetime < $lowest || null === $lowest) {
                $lowest = $datetime;
            }
        }

        return $lowest;
    }
public static function lowest ( ... $ datetimes ) { $ lowest = null ; foreach ( $ datetimes as $ datetime ) { if ( ! $ datetime instanceof \ DateTimeInterface ) { continue ; } if ( $ datetime < $ lowest || null === $ lowest ) { $ lowest = $ datetime ; } } return $ lowest ; }
Get the lowest "DateTimeInterface" from the parameters
@param mixed $datetimes,... A various number of instances implementing `DateTimeInterface`
@return \DateTimeInterface|null
Get the lowest DateTimeInterface from the parameters