PHP Класс Neos\Eel\Helper\TypeHelper

Наследование: implements Neos\Eel\ProtectedContextAwareInterface
Показать файл Открыть проект

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

Метод Описание
allowsCallOfMethod ( string $methodName ) : boolean
className ( object $variable ) : string | null Get the class name of the given variable or NULL if it wasn't an object
getType ( mixed $variable ) : string Get the variable type
instance ( mixed $variable, string $expectedObjectType ) : boolean Is the given variable of the provided object type.
isArray ( mixed $variable ) : boolean Is the given variable an array.
isBoolean ( mixed $variable ) : boolean Is the given variable boolean.
isFloat ( mixed $variable ) : boolean Is the given variable a float.
isInteger ( mixed $variable ) : boolean Is the given variable an integer.
isNumeric ( mixed $variable ) : boolean Is the given variable numeric.
isObject ( mixed $variable ) : boolean Is the given variable an object.
isScalar ( mixed $variable ) : boolean Is the given variable a scalar.
isString ( mixed $variable ) : boolean Is the given variable a string.
typeof ( mixed $variable ) : string Get the variable type

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

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

public allowsCallOfMethod ( string $methodName ) : boolean
$methodName string
Результат boolean

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

Get the class name of the given variable or NULL if it wasn't an object
public className ( object $variable ) : string | null
$variable object
Результат string | null

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

Get the variable type
См. также: typeof()
public getType ( mixed $variable ) : string
$variable mixed
Результат string

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

Is the given variable of the provided object type.
public instance ( mixed $variable, string $expectedObjectType ) : boolean
$variable mixed
$expectedObjectType string
Результат boolean

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

Is the given variable an array.
public isArray ( mixed $variable ) : boolean
$variable mixed
Результат boolean

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

Is the given variable boolean.
public isBoolean ( mixed $variable ) : boolean
$variable mixed
Результат boolean

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

Is the given variable a float.
public isFloat ( mixed $variable ) : boolean
$variable mixed
Результат boolean

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

Is the given variable an integer.
public isInteger ( mixed $variable ) : boolean
$variable mixed
Результат boolean

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

Is the given variable numeric.
public isNumeric ( mixed $variable ) : boolean
$variable mixed
Результат boolean

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

Is the given variable an object.
public isObject ( mixed $variable ) : boolean
$variable mixed
Результат boolean

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

Is the given variable a scalar.
public isScalar ( mixed $variable ) : boolean
$variable mixed
Результат boolean

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

Is the given variable a string.
public isString ( mixed $variable ) : boolean
$variable mixed
Результат boolean

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

Get the variable type
public typeof ( mixed $variable ) : string
$variable mixed
Результат string