Changed a lot of parameters.

This commit is contained in:
James Cole
2016-02-05 09:25:15 +01:00
parent 554640c345
commit 78bcd3e1bb
64 changed files with 539 additions and 572 deletions

View File

@@ -27,7 +27,7 @@ interface BillChartGeneratorInterface
*
* @return array
*/
public function frontpage($paid, $unpaid);
public function frontpage(string $paid, string $unpaid);
/**
* @param Bill $bill

View File

@@ -27,7 +27,7 @@ class ChartJsBillChartGenerator implements BillChartGeneratorInterface
*
* @return array
*/
public function frontpage($paid, $unpaid)
public function frontpage(string $paid, string $unpaid)
{
bcscale(2);
$data = [

View File

@@ -52,7 +52,7 @@ class ChartJsReportChartGenerator implements ReportChartGeneratorInterface
*
* @return array
*/
public function multiYearInOutSummarized($income, $expense, $count)
public function multiYearInOutSummarized(string $income, string $expense, int $count)
{
$data = [
'count' => 2,
@@ -117,7 +117,7 @@ class ChartJsReportChartGenerator implements ReportChartGeneratorInterface
*
* @return array
*/
public function yearInOutSummarized($income, $expense, $count)
public function yearInOutSummarized(string $income, string $expense, int $count)
{
$data = [

View File

@@ -33,7 +33,7 @@ interface ReportChartGeneratorInterface
*
* @return array
*/
public function multiYearInOutSummarized($income, $expense, $count);
public function multiYearInOutSummarized(string $income, string $expense, int $count);
/**
* @param Collection $entries
@@ -49,6 +49,6 @@ interface ReportChartGeneratorInterface
*
* @return array
*/
public function yearInOutSummarized($income, $expense, $count);
public function yearInOutSummarized(string $income, string $expense, int $count);
}