Skip to content

Instantly share code, notes, and snippets.

@DaveRandom
Forked from nikita2206/reflection.php
Last active June 2, 2016 15:00
Show Gist options
  • Save DaveRandom/5080dd15d39be2d8984bcfadd4863c16 to your computer and use it in GitHub Desktop.
Save DaveRandom/5080dd15d39be2d8984bcfadd4863c16 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
{
function getTypes(): ReflectionType[];
}
class ReflectionUnionType extends ReflectionCompositeType {}
class ReflectionIntersectionType extends ReflectionCompositeType {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment