Created
August 11, 2020 08:23
-
-
Save radimvaculik/6153123e3ef373c04632b2cb4218a602 to your computer and use it in GitHub Desktop.
JsonMapper example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
namespace App\Data\User\Model; | |
class User | |
{ | |
public int $id; | |
public UserRole $role; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
namespace App\Data\User\Model; | |
class UserRole | |
{ | |
public string $name; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment