summaryrefslogtreecommitdiff
path: root/app/Statistics.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-02-22 17:26:05 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-02-22 17:26:05 +0000
commit999da59025bc400991eda1ed9fde95b80a62dca5 (patch)
treeba22a82023b0d370017abb3b43d68a321c0cc5c1 /app/Statistics.php
parent38ef8377ecb8d4609cdffd016c1c278b1f48e117 (diff)
downloadwebtrees-999da59025bc400991eda1ed9fde95b80a62dca5.tar.gz
webtrees-999da59025bc400991eda1ed9fde95b80a62dca5.tar.bz2
webtrees-999da59025bc400991eda1ed9fde95b80a62dca5.zip
Refactor statistics query functions to return queries
Diffstat (limited to 'app/Statistics.php')
-rw-r--r--app/Statistics.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/app/Statistics.php b/app/Statistics.php
index 422cb4a580..869f6450c9 100644
--- a/app/Statistics.php
+++ b/app/Statistics.php
@@ -98,7 +98,6 @@ class Statistics implements
'getAllTagsText',
'statsPlaces',
'statsAgeQuery',
- 'monthFirstChildQuery',
'statsChildrenQuery',
'statsMarrAgeQuery',
];
@@ -1867,9 +1866,17 @@ class Statistics implements
/**
* @inheritDoc
*/
- public function monthFirstChildQuery(bool $sex = false): array
+ public function monthFirstChildQuery(int $year1 = -1, int $year2 = -1): Builder
{
- return $this->familyRepository->monthFirstChildQuery($sex);
+ return $this->familyRepository->monthFirstChildQuery($year1, $year2);
+ }
+
+ /**
+ * @inheritDoc
+ */
+ public function monthFirstChildBySexQuery(int $year1 = -1, int $year2 = -1): Builder
+ {
+ return $this->familyRepository->monthFirstChildBySexQuery($year1, $year2);
}
/**