mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-27 07:16:07 +03:00
30 lines
443 B
PHP
30 lines
443 B
PHP
<?php
|
|
namespace GraphQL\Examples\Blog\Data;
|
|
|
|
use GraphQL\Utils;
|
|
|
|
class Image
|
|
{
|
|
const TYPE_USERPIC = 'userpic';
|
|
|
|
const SIZE_ICON = 'icon';
|
|
const SIZE_SMALL = 'small';
|
|
const SIZE_MEDIUM = 'medium';
|
|
const SIZE_ORIGINAL = 'original';
|
|
|
|
public $id;
|
|
|
|
public $type;
|
|
|
|
public $size;
|
|
|
|
public $width;
|
|
|
|
public $height;
|
|
|
|
public function __construct(array $data)
|
|
{
|
|
Utils::assign($this, $data);
|
|
}
|
|
}
|