PHP Класс BetterReflection\Reflection\ReflectionType

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__toString ( ) : string Convert this string type to a string
allowsNull ( ) : boolean Does the parameter allow null?
createFromType ( phpDocumentor\Reflection\Type $type, boolean $allowsNull ) : ReflectionType
getTypeObject ( ) : phpDocumentor\Reflection\Type Get a PhpDocumentor type object for this type
isBuiltin ( ) : boolean Checks if it is a built-in type (i.e., it's not an object.

Приватные методы

Метод Описание
__construct ( )

Описание методов

__toString() публичный Метод

Convert this string type to a string
См. также: https://github.com/php/php-src/blob/master/ext/reflection/php_reflection.c#L2993
public __toString ( ) : string
Результат string

allowsNull() публичный Метод

Does the parameter allow null?
public allowsNull ( ) : boolean
Результат boolean

createFromType() публичный статический Метод

public static createFromType ( phpDocumentor\Reflection\Type $type, boolean $allowsNull ) : ReflectionType
$type phpDocumentor\Reflection\Type
$allowsNull boolean
Результат ReflectionType

getTypeObject() публичный Метод

Get a PhpDocumentor type object for this type
public getTypeObject ( ) : phpDocumentor\Reflection\Type
Результат phpDocumentor\Reflection\Type

isBuiltin() публичный Метод

..)
См. также: http://php.net/manual/en/reflectiontype.isbuiltin.php
public isBuiltin ( ) : boolean
Результат boolean