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

23 lines
287 B
PHP
Raw Permalink Normal View History

<?php
namespace GraphQL\Examples\Blog\Data;
use GraphQL\Utils\Utils;
class User
{
public $id;
public $email;
public $firstName;
public $lastName;
public $hasPhoto;
public function __construct(array $data)
{
Utils::assign($this, $data);
}
}