PHP Class SensioLabs\DeprecationDetector\FileInfo\PhpFileInfo

Inheritance: extends Symfony\Component\Finder\SplFileInfo, implements SensioLabs\DeprecationDetector\FileInfo\DeprecationCollectionInterface
Show file Open project: sensiolabs-de/deprecation-detector Class Usage Examples

Protected Properties

Property Type Description
$classDeprecations SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation[]
$classUsages SensioLabs\DeprecationDetector\FileInfo\Usage\ClassUsage[]
$deprecatedLanguageUsages SensioLabs\DeprecationDetector\FileInfo\Usage\DeprecatedLanguageUsage[]
$functionDeprecations SensioLabs\DeprecationDetector\FileInfo\Deprecation\FunctionDeprecation[]
$functionUsages SensioLabs\DeprecationDetector\FileInfo\Usage\FunctionUsage[]
$interfaceDeprecations SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation[]
$interfaceUsages SensioLabs\DeprecationDetector\FileInfo\Usage\InterfaceUsage[]
$methodDefinitions array
$methodDeprecations SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation[]
$methodUsages SensioLabs\DeprecationDetector\FileInfo\Usage\MethodUsage[]
$superTypeUsages array
$typeHintUsages SensioLabs\DeprecationDetector\FileInfo\Usage\TypeHintUsage[]

Public Methods

Method Description
addClassDeprecation ( SensioLabs\DeprecationDetector\FileInfo\Deprecation\ClassDeprecation $classDeprecation )
addClassUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\ClassUsage $class )
addDeprecatedLanguageUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\DeprecatedLanguageUsage $deprecatedLanguageUsage )
addFunctionDeprecation ( SensioLabs\DeprecationDetector\FileInfo\Deprecation\FunctionDeprecation $deprecation )
addFunctionUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\FunctionUsage $usage )
addInterfaceDeprecation ( SensioLabs\DeprecationDetector\FileInfo\Deprecation\InterfaceDeprecation $interfaceDeprecation )
addInterfaceUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\InterfaceUsage $interface )
addMethodDefinition ( SensioLabs\DeprecationDetector\FileInfo\MethodDefinition $methodDefinition )
addMethodDeprecation ( SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation $methodDeprecation )
addMethodUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\MethodUsage $methodUsage )
addSuperTypeUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\SuperTypeUsage $superTypeUsage )
addTypeHintUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\TypeHintUsage $typeHintUsage )
classDeprecations ( ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\ClassDeprecation[]
classUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\ClassUsage[]
create ( Symfony\Component\Finder\SplFileInfo $file ) : self
functionDeprecations ( ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\FunctionDeprecation[]
getClassDeprecation ( string $className ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\ClassDeprecation
getDeprecatedLanguageUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\DeprecatedLanguageUsage[]
getFunctionUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\FunctionUsage[]
getInterfaceDeprecation ( string $interfaceName ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\ClassDeprecation
getInterfaceUsageByClass ( $className ) : SensioLabs\DeprecationDetector\FileInfo\Usage\InterfaceUsage[]
getMethodDeprecation ( string $methodName, string $className ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation
getSuperTypeUsageByClass ( $className ) : SensioLabs\DeprecationDetector\FileInfo\Usage\SuperTypeUsage | null
hasClassDeprecation ( string $className ) : boolean
hasClassDeprecations ( ) : boolean
hasDeprecations ( ) : boolean
hasFunctionDeprecations ( ) : boolean
hasInterfaceDeprecation ( string $interfaceName ) : boolean
hasInterfaceDeprecations ( ) : boolean
hasInterfaceUsageByClass ( $className ) : boolean
hasMethodDeprecation ( string $methodName, string $className ) : boolean
hasMethodDeprecations ( ) : boolean
hasSuperTypeUsageByClass ( $className ) : boolean
interfaceDeprecations ( ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\InterfaceDeprecation[]
interfaceUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\InterfaceUsage[]
methodDefinitions ( ) : SensioLabs\DeprecationDetector\FileInfo\MethodDefinition[]
methodDeprecations ( ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation[]
methodUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\MethodUsage[]
superTypeUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\SuperTypeUsage[]
typeHintUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\TypeHintUsage[]

Method Details

addClassDeprecation() public method

public addClassDeprecation ( SensioLabs\DeprecationDetector\FileInfo\Deprecation\ClassDeprecation $classDeprecation )
$classDeprecation SensioLabs\DeprecationDetector\FileInfo\Deprecation\ClassDeprecation

addClassUsage() public method

public addClassUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\ClassUsage $class )
$class SensioLabs\DeprecationDetector\FileInfo\Usage\ClassUsage

addDeprecatedLanguageUsage() public method

public addDeprecatedLanguageUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\DeprecatedLanguageUsage $deprecatedLanguageUsage )
$deprecatedLanguageUsage SensioLabs\DeprecationDetector\FileInfo\Usage\DeprecatedLanguageUsage

addFunctionDeprecation() public method

public addFunctionDeprecation ( SensioLabs\DeprecationDetector\FileInfo\Deprecation\FunctionDeprecation $deprecation )
$deprecation SensioLabs\DeprecationDetector\FileInfo\Deprecation\FunctionDeprecation

addFunctionUsage() public method

public addFunctionUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\FunctionUsage $usage )
$usage SensioLabs\DeprecationDetector\FileInfo\Usage\FunctionUsage

addInterfaceDeprecation() public method

public addInterfaceDeprecation ( SensioLabs\DeprecationDetector\FileInfo\Deprecation\InterfaceDeprecation $interfaceDeprecation )
$interfaceDeprecation SensioLabs\DeprecationDetector\FileInfo\Deprecation\InterfaceDeprecation

addInterfaceUsage() public method

public addInterfaceUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\InterfaceUsage $interface )
$interface SensioLabs\DeprecationDetector\FileInfo\Usage\InterfaceUsage

addMethodDefinition() public method

public addMethodDefinition ( SensioLabs\DeprecationDetector\FileInfo\MethodDefinition $methodDefinition )
$methodDefinition SensioLabs\DeprecationDetector\FileInfo\MethodDefinition

addMethodDeprecation() public method

public addMethodDeprecation ( SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation $methodDeprecation )
$methodDeprecation SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation

addMethodUsage() public method

public addMethodUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\MethodUsage $methodUsage )
$methodUsage SensioLabs\DeprecationDetector\FileInfo\Usage\MethodUsage

addSuperTypeUsage() public method

public addSuperTypeUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\SuperTypeUsage $superTypeUsage )
$superTypeUsage SensioLabs\DeprecationDetector\FileInfo\Usage\SuperTypeUsage

addTypeHintUsage() public method

public addTypeHintUsage ( SensioLabs\DeprecationDetector\FileInfo\Usage\TypeHintUsage $typeHintUsage )
$typeHintUsage SensioLabs\DeprecationDetector\FileInfo\Usage\TypeHintUsage

classDeprecations() public method

public classDeprecations ( ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\ClassDeprecation[]
return SensioLabs\DeprecationDetector\FileInfo\Deprecation\ClassDeprecation[]

classUsages() public method

public classUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\ClassUsage[]
return SensioLabs\DeprecationDetector\FileInfo\Usage\ClassUsage[]

create() public static method

public static create ( Symfony\Component\Finder\SplFileInfo $file ) : self
$file Symfony\Component\Finder\SplFileInfo
return self

functionDeprecations() public method

public functionDeprecations ( ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\FunctionDeprecation[]
return SensioLabs\DeprecationDetector\FileInfo\Deprecation\FunctionDeprecation[]

getClassDeprecation() public method

public getClassDeprecation ( string $className ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\ClassDeprecation
$className string
return SensioLabs\DeprecationDetector\FileInfo\Deprecation\ClassDeprecation

getDeprecatedLanguageUsages() public method

public getDeprecatedLanguageUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\DeprecatedLanguageUsage[]
return SensioLabs\DeprecationDetector\FileInfo\Usage\DeprecatedLanguageUsage[]

getFunctionUsages() public method

public getFunctionUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\FunctionUsage[]
return SensioLabs\DeprecationDetector\FileInfo\Usage\FunctionUsage[]

getInterfaceDeprecation() public method

public getInterfaceDeprecation ( string $interfaceName ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\ClassDeprecation
$interfaceName string
return SensioLabs\DeprecationDetector\FileInfo\Deprecation\ClassDeprecation

getInterfaceUsageByClass() public method

public getInterfaceUsageByClass ( $className ) : SensioLabs\DeprecationDetector\FileInfo\Usage\InterfaceUsage[]
$className
return SensioLabs\DeprecationDetector\FileInfo\Usage\InterfaceUsage[]

getMethodDeprecation() public method

public getMethodDeprecation ( string $methodName, string $className ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation
$methodName string
$className string
return SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation

getSuperTypeUsageByClass() public method

public getSuperTypeUsageByClass ( $className ) : SensioLabs\DeprecationDetector\FileInfo\Usage\SuperTypeUsage | null
$className
return SensioLabs\DeprecationDetector\FileInfo\Usage\SuperTypeUsage | null

hasClassDeprecation() public method

public hasClassDeprecation ( string $className ) : boolean
$className string
return boolean

hasClassDeprecations() public method

public hasClassDeprecations ( ) : boolean
return boolean

hasDeprecations() public method

public hasDeprecations ( ) : boolean
return boolean

hasFunctionDeprecations() public method

hasInterfaceDeprecation() public method

public hasInterfaceDeprecation ( string $interfaceName ) : boolean
$interfaceName string
return boolean

hasInterfaceDeprecations() public method

hasInterfaceUsageByClass() public method

public hasInterfaceUsageByClass ( $className ) : boolean
$className
return boolean

hasMethodDeprecation() public method

public hasMethodDeprecation ( string $methodName, string $className ) : boolean
$methodName string
$className string
return boolean

hasMethodDeprecations() public method

public hasMethodDeprecations ( ) : boolean
return boolean

hasSuperTypeUsageByClass() public method

public hasSuperTypeUsageByClass ( $className ) : boolean
$className
return boolean

interfaceDeprecations() public method

public interfaceDeprecations ( ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\InterfaceDeprecation[]
return SensioLabs\DeprecationDetector\FileInfo\Deprecation\InterfaceDeprecation[]

interfaceUsages() public method

public interfaceUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\InterfaceUsage[]
return SensioLabs\DeprecationDetector\FileInfo\Usage\InterfaceUsage[]

methodDefinitions() public method

public methodDefinitions ( ) : SensioLabs\DeprecationDetector\FileInfo\MethodDefinition[]
return SensioLabs\DeprecationDetector\FileInfo\MethodDefinition[]

methodDeprecations() public method

public methodDeprecations ( ) : SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation[]
return SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation[]

methodUsages() public method

public methodUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\MethodUsage[]
return SensioLabs\DeprecationDetector\FileInfo\Usage\MethodUsage[]

superTypeUsages() public method

public superTypeUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\SuperTypeUsage[]
return SensioLabs\DeprecationDetector\FileInfo\Usage\SuperTypeUsage[]

typeHintUsages() public method

public typeHintUsages ( ) : SensioLabs\DeprecationDetector\FileInfo\Usage\TypeHintUsage[]
return SensioLabs\DeprecationDetector\FileInfo\Usage\TypeHintUsage[]

Property Details

$classDeprecations protected property

protected MethodDeprecation[],SensioLabs\DeprecationDetector\FileInfo\Deprecation $classDeprecations
return SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation[]

$classUsages protected property

protected ClassUsage[],SensioLabs\DeprecationDetector\FileInfo\Usage $classUsages
return SensioLabs\DeprecationDetector\FileInfo\Usage\ClassUsage[]

$deprecatedLanguageUsages protected property

protected DeprecatedLanguageUsage[],SensioLabs\DeprecationDetector\FileInfo\Usage $deprecatedLanguageUsages
return SensioLabs\DeprecationDetector\FileInfo\Usage\DeprecatedLanguageUsage[]

$functionDeprecations protected property

protected FunctionDeprecation[],SensioLabs\DeprecationDetector\FileInfo\Deprecation $functionDeprecations
return SensioLabs\DeprecationDetector\FileInfo\Deprecation\FunctionDeprecation[]

$functionUsages protected property

protected FunctionUsage[],SensioLabs\DeprecationDetector\FileInfo\Usage $functionUsages
return SensioLabs\DeprecationDetector\FileInfo\Usage\FunctionUsage[]

$interfaceDeprecations protected property

protected MethodDeprecation[],SensioLabs\DeprecationDetector\FileInfo\Deprecation $interfaceDeprecations
return SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation[]

$interfaceUsages protected property

protected InterfaceUsage[],SensioLabs\DeprecationDetector\FileInfo\Usage $interfaceUsages
return SensioLabs\DeprecationDetector\FileInfo\Usage\InterfaceUsage[]

$methodDefinitions protected property

protected array $methodDefinitions
return array

$methodDeprecations protected property

protected MethodDeprecation[],SensioLabs\DeprecationDetector\FileInfo\Deprecation $methodDeprecations
return SensioLabs\DeprecationDetector\FileInfo\Deprecation\MethodDeprecation[]

$methodUsages protected property

protected MethodUsage[],SensioLabs\DeprecationDetector\FileInfo\Usage $methodUsages
return SensioLabs\DeprecationDetector\FileInfo\Usage\MethodUsage[]

$superTypeUsages protected property

protected array $superTypeUsages
return array

$typeHintUsages protected property

protected TypeHintUsage[],SensioLabs\DeprecationDetector\FileInfo\Usage $typeHintUsages
return SensioLabs\DeprecationDetector\FileInfo\Usage\TypeHintUsage[]