PHP Class SlevomatCodingStandard\Helpers\UseStatement

Mostra file Open project: slevomat/coding-standard Class Usage Examples

Public Methods

Method Description
__construct ( string $nameAsReferencedInFile, string $fullyQualifiedClassName, integer $usePointer, string $type )
compareByType ( self $that ) : integer
getCanonicalNameAsReferencedInFile ( ) : string
getFullyQualifiedTypeName ( ) : string
getNameAsReferencedInFile ( ) : string
getPointer ( ) : integer
hasSameType ( self $that ) : boolean
isConstant ( ) : boolean
isFunction ( ) : boolean
normalizedNameAsReferencedInFile ( string $name ) : string

Method Details

__construct() public method

public __construct ( string $nameAsReferencedInFile, string $fullyQualifiedClassName, integer $usePointer, string $type )
$nameAsReferencedInFile string
$fullyQualifiedClassName string
$usePointer integer T_USE pointer
$type string

compareByType() public method

public compareByType ( self $that ) : integer
$that self
return integer

getCanonicalNameAsReferencedInFile() public method

getFullyQualifiedTypeName() public method

getNameAsReferencedInFile() public method

getPointer() public method

public getPointer ( ) : integer
return integer

hasSameType() public method

public hasSameType ( self $that ) : boolean
$that self
return boolean

isConstant() public method

public isConstant ( ) : boolean
return boolean

isFunction() public method

public isFunction ( ) : boolean
return boolean

normalizedNameAsReferencedInFile() public static method

public static normalizedNameAsReferencedInFile ( string $name ) : string
$name string
return string