summaryrefslogtreecommitdiff
path: root/app/Family.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-09-22 21:16:50 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-09-22 22:08:23 +0100
commit76f666f43b55e172261f2b4ef1407e68fd6740bb (patch)
treed840fd64fc108b9d7a75667d0380096a2be104b4 /app/Family.php
parent09c196b1931da2295db2f79f0f71dce3dbb89a63 (diff)
downloadwebtrees-76f666f43b55e172261f2b4ef1407e68fd6740bb.tar.gz
webtrees-76f666f43b55e172261f2b4ef1407e68fd6740bb.tar.bz2
webtrees-76f666f43b55e172261f2b4ef1407e68fd6740bb.zip
PHPdoc, types, etc.
Diffstat (limited to 'app/Family.php')
-rw-r--r--app/Family.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Family.php b/app/Family.php
index ed6f0382b2..328adda068 100644
--- a/app/Family.php
+++ b/app/Family.php
@@ -38,7 +38,7 @@ class Family extends GedcomRecord
* empty string for records with pending deletions
* @param Tree $tree
*/
- public function __construct($xref, $gedcom, $pending, $tree)
+ public function __construct(string $xref, string $gedcom, $pending, Tree $tree)
{
parent::__construct($xref, $gedcom, $pending, $tree);
@@ -76,7 +76,7 @@ class Family extends GedcomRecord
*
* @return Family|null
*/
- public static function getInstance($xref, Tree $tree, $gedcom = null)
+ public static function getInstance(string $xref, Tree $tree, string $gedcom = null)
{
$record = parent::getInstance($xref, $tree, $gedcom);
@@ -119,7 +119,7 @@ class Family extends GedcomRecord
*
* @return null|string
*/
- protected static function fetchGedcomRecord($xref, $tree_id)
+ protected static function fetchGedcomRecord(string $xref, int $tree_id)
{
return Database::prepare(
"SELECT f_gedcom FROM `##families` WHERE f_id = :xref AND f_file = :tree_id"