mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-23 21:36:05 +03:00
23 lines
288 B
PHP
23 lines
288 B
PHP
|
<?php
|
||
|
namespace GraphQL\Examples\Blog\Data;
|
||
|
|
||
|
use GraphQL\Utils;
|
||
|
|
||
|
class Story
|
||
|
{
|
||
|
public $id;
|
||
|
|
||
|
public $authorId;
|
||
|
|
||
|
public $title;
|
||
|
|
||
|
public $body;
|
||
|
|
||
|
public $isAnonymous = false;
|
||
|
|
||
|
public function __construct(array $data)
|
||
|
{
|
||
|
Utils::assign($this, $data);
|
||
|
}
|
||
|
}
|