graphql-php/examples/01-blog/Blog/Data/Story.php
2017-07-10 19:53:46 +07:00

23 lines
294 B
PHP

<?php
namespace GraphQL\Examples\Blog\Data;
use GraphQL\Utils\Utils;
class Story
{
public $id;
public $authorId;
public $title;
public $body;
public $isAnonymous = false;
public function __construct(array $data)
{
Utils::assign($this, $data);
}
}