Skip to content

Instantly share code, notes, and snippets.

@nikita2206
Created June 2, 2016 14:56
Show Gist options
  • Save nikita2206/9b2b04a0b9fb425c685a07358dee43bd to your computer and use it in GitHub Desktop.
Save nikita2206/9b2b04a0b9fb425c685a07358dee43bd to your computer and use it in GitHub Desktop.
<?php
class ReflectionType
{
function allowsNull(): bool;
function isBuiltin(): bool;
function __toString(): string;
}
class ReflectionScalarType extends ReflectionType
{
function getName(): string;
}
class ReflectionClassType extends ReflectionType
{
function getName(): string;
function getClass(): ReflectionClass;
}
class ReflectionCompositeType extends ReflectionType
{
const KIND_UNION = 0;
const KIND_INTERSECTION = 1;
function getTypes(): ReflectionType[];
function getKind(): int;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment