PHP 클래스 Neos\Eel\Helper\TypeHelper

상속: implements Neos\Eel\ProtectedContextAwareInterface
파일 보기 프로젝트 열기: neos/flow-development-collection

공개 메소드들

메소드 설명
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