Cleanup and fix tests.

This commit is contained in:
James Cole
2016-03-02 13:13:33 +01:00
parent b04d68d087
commit 3ef84dc1fc
4 changed files with 51 additions and 25 deletions

View File

@@ -16,11 +16,19 @@ class Account
/** @var Collection */
protected $accounts;
/** @var string */
protected $difference;
protected $difference = '';
/** @var string */
protected $end;
protected $end = '';
/** @var string */
protected $start;
protected $start = '';
/**
* Account constructor.
*/
public function __construct()
{
$this->accounts = new Collection;
}
/**
* @return Collection

View File

@@ -41,7 +41,7 @@ class Balance
*/
public function getBalanceHeader(): BalanceHeader
{
return $this->balanceHeader;
return $this->balanceHeader ?? new BalanceHeader;
}
/**