mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-30 17:06:05 +03:00
23 lines
281 B
PHP
23 lines
281 B
PHP
|
<?php
|
||
|
namespace GraphQL\Examples\Blog\Data;
|
||
|
|
||
|
use GraphQL\Utils;
|
||
|
|
||
|
class User
|
||
|
{
|
||
|
public $id;
|
||
|
|
||
|
public $email;
|
||
|
|
||
|
public $firstName;
|
||
|
|
||
|
public $lastName;
|
||
|
|
||
|
public $hasPhoto;
|
||
|
|
||
|
public function __construct(array $data)
|
||
|
{
|
||
|
Utils::assign($this, $data);
|
||
|
}
|
||
|
}
|