* @copyright Meritoo */ class F { protected $username; private $accountBalance; private $city; private $country; private $g; public function __construct($accountBalance, $city, $country, $username, $firstName = 'John', $lastName = 'Scott') { $this->accountBalance = $accountBalance; $this->city = $city; $this->country = $country; $this->username = $username; $this->g = new G($firstName, $lastName); // Called to avoid "Unused private method getAccountBalance" warning only $this->getAccountBalance(); } public function getCountry() { return $this->country; } protected function getCity() { return $this->city; } private function getAccountBalance() { return $this->accountBalance; } }