graphql-php/examples/01-blog/Blog/Data/Comment.php

26 lines
308 B
PHP
Raw Normal View History

2016-10-23 01:13:55 +03:00
<?php
namespace GraphQL\Examples\Blog\Data;
use GraphQL\Utils;
class Comment
{
public $id;
public $authorId;
public $storyId;
public $parentId;
public $body;
public $isAnonymous;
public function __construct(array $data)
{
Utils::assign($this, $data);
}
}