Skip to content

Commit

Permalink
not set default values of string VO properties
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-gribanov committed Jul 26, 2019
1 parent 4f11e53 commit 5969ca9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,9 @@ class Questionnaire
```php
class Name
{
private $firstname = '';
private $lastname = '';
private $patronymic = '';
private $firstname;
private $lastname;
private $patronymic;

public function __construct(string $firstname, string $lastname, string $patronymic)
{
Expand All @@ -481,9 +481,9 @@ class Name

class City
{
private $region = '';
private $district = '';
private $city = '';
private $region;
private $district;
private $city;

public function __construct(string $region, string $district, string $city)
{
Expand All @@ -497,8 +497,8 @@ class City

class Contact
{
private $phone = '';
private $email = '';
private $phone;
private $email;

public function __construct(string $phone, string $email)
{
Expand Down

0 comments on commit 5969ca9

Please sign in to comment.