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

26 lines
314 B
PHP

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