Created
August 11, 2020 08:28
-
-
Save radimvaculik/b14748ada35d6c0049e46c23509f54f5 to your computer and use it in GitHub Desktop.
JsonMapper examples #2
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\Preset\Model; | |
class Preset | |
{ | |
public int $id; | |
public string $name; | |
} |
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\Preset\Model; | |
class PresetCollection | |
{ | |
/** @var Preset[] $global */ | |
public array $global; | |
/** @var Preset[] $custom */ | |
public array $custom; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment