summaryrefslogtreecommitdiff
path: root/app/Date
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-09-21 17:02:10 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-09-21 21:32:23 +0100
commit7e96c9252136dcd930d82ed9a75fc86423075cb7 (patch)
tree3acbab8d38b9461df3dd3fdb54e1e245ef26a093 /app/Date
parent8fe32d0d463aad11cb638c8191897145e9a9a1ba (diff)
downloadwebtrees-7e96c9252136dcd930d82ed9a75fc86423075cb7.tar.gz
webtrees-7e96c9252136dcd930d82ed9a75fc86423075cb7.tar.bz2
webtrees-7e96c9252136dcd930d82ed9a75fc86423075cb7.zip
PHPdoc
Diffstat (limited to 'app/Date')
-rw-r--r--app/Date/CalendarDate.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/Date/CalendarDate.php b/app/Date/CalendarDate.php
index 1bc15d4c8e..c6ffefd460 100644
--- a/app/Date/CalendarDate.php
+++ b/app/Date/CalendarDate.php
@@ -94,7 +94,7 @@ class CalendarDate
*
* @param array|int|CalendarDate $date
*/
- public function __construct($date)
+ protected function __construct($date)
{
// Construct from an integer (a julian day number)
if (is_int($date)) {
@@ -126,6 +126,7 @@ class CalendarDate
return;
}
+ // Contruct from a CalendarDate
$this->minJD = $date->minJD;
$this->maxJD = $date->maxJD;
@@ -525,8 +526,7 @@ class CalendarDate
/**
* How long between an event and a given julian day
- * Return result as either a number of years or
- * a gedcom-style age string.
+ * Return result as a number of years.
*
* @param int $jd date for calculation
*
@@ -561,8 +561,7 @@ class CalendarDate
/**
* How long between an event and a given julian day
- * Return result as either a number of years or
- * a gedcom-style age string.
+ * Return result as a gedcom-style age string.
*
* @param int $jd date for calculation
*