mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-30 00:46:02 +03:00
26 lines
308 B
PHP
26 lines
308 B
PHP
|
<?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);
|
||
|
}
|
||
|
}
|