Skip to content

Commit

Permalink
Fix property visibility in ObjectPropertyHydrator example
Browse files Browse the repository at this point in the history
ObjectPropertyHydrator example should probably consist of publicly accessible properties, as opposed to ReflectionHydrator.

Signed-off-by: Michał Kurzydłowski <[email protected]>
  • Loading branch information
mkurzydlowski committed Jan 15, 2021
1 parent 9031b46 commit 31041de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/book/v4/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ The ObjectPropertyHydrator hydrates objects and extracts data using publicly acc
```php
class User
{
private $firstName;
private $lastName;
private $emailAddress;
private $phoneNumber;
public $firstName;
public $lastName;
public $emailAddress;
public $phoneNumber;
}

$data = [
Expand Down

0 comments on commit 31041de

Please sign in to comment.