mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-23 13:26:04 +03:00
29 lines
548 B
PHP
29 lines
548 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace GraphQL\Tests\Executor\TestClasses;
|
|
|
|
class Person
|
|
{
|
|
/** @var string */
|
|
public $name;
|
|
|
|
/** @var (Dog|Cat)[]|null */
|
|
public $pets;
|
|
|
|
/** @var (Dog|Cat|Person)[]|null */
|
|
public $friends;
|
|
|
|
/**
|
|
* @param (Cat|Dog)[]|null $pets
|
|
* @param (Cat|Dog|Person)[]|null $friends
|
|
*/
|
|
public function __construct(string $name, $pets = null, $friends = null)
|
|
{
|
|
$this->name = $name;
|
|
$this->pets = $pets;
|
|
$this->friends = $friends;
|
|
}
|
|
}
|