Skip to content

Commit

Permalink
Fixed missing properties during persistance of child classes
Browse files Browse the repository at this point in the history
  • Loading branch information
sspat committed Feb 21, 2020
1 parent 086ffce commit 80ad404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BaseMoney.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ abstract class BaseMoney
private const HUMAN_READABLE_NAME = 'Money';

/** @var string */
private $amount;
protected $amount;

/** @var string */
private $currency;
protected $currency;

final private function __construct(string $amount, string $currency)
{
Expand Down

0 comments on commit 80ad404

Please sign in to comment.