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