Updated GiveawayCompleted
This commit is contained in:
parent
0a411cec79
commit
89d0165fb6
1 changed files with 6 additions and 1 deletions
|
@ -67,8 +67,13 @@ class GiveawayCompleted implements ObjectTypeInterface
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function fromArray(array $data): ObjectTypeInterface
|
||||
public static function fromArray(?array $data): ?GiveawayCompleted
|
||||
{
|
||||
if($data === null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
$object = new self();
|
||||
$object->winner_count = $data['winner_count'];
|
||||
$object->unclaimed_prize_count = $data['unclaimed_prize_count'] ?? null;
|
||||
|
|
Loading…
Add table
Reference in a new issue