Minor refactoring

This commit is contained in:
Meritoo
2019-04-13 18:32:44 +02:00
parent eb8fa110ad
commit a56b325307
3 changed files with 13 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ class F
private $accountBalance;
private $city;
private $country;
private $gInstance;
private $g;
public function __construct($accountBalance, $city, $country, $username, $firstName = 'John', $lastName = 'Scott')
{
@@ -29,7 +29,7 @@ class F
$this->city = $city;
$this->country = $country;
$this->username = $username;
$this->gInstance = new G($firstName, $lastName);
$this->g = new G($firstName, $lastName);
// Called to avoid "Unused private method getAccountBalance" warning only
$this->getAccountBalance();