API Reference
Namespaces
PhpParser
Builder
Comment
ErrorHandler
Internal
Lexer
Node
NodeVisitor
Parser
PrettyPrinter
PHPStan
Analyser
BetterReflection
Classes
Collectors
Command
DependencyInjection
Diagnose
File
Node
Parser
Php
PhpDoc
PhpDocParser
Reflection
Rules
Testing
Type
Accessory
Constant
Enum
Generic
Helper
Php
none
Classes
AcceptsResult
ArrayType
BenevolentUnionType
BooleanType
CallableType
CircularTypeAliasErrorType
ClassStringType
ClosureType
ClosureTypeFactory
ConditionalType
ConditionalTypeForParameter
ConstantTypeHelper
ErrorType
FileTypeMapper
FloatType
GeneralizePrecision
IntegerRangeType
IntegerType
IntersectionType
IsSuperTypeOfResult
IterableType
KeyOfType
MixedType
NeverType
NewObjectType
NonAcceptingNeverType
NullType
ObjectShapeType
ObjectType
ObjectWithoutClassType
OffsetAccessType
ResourceType
StaticType
StringType
ThisType
TypeCombinator
TypehintHelper
TypeTraverser
TypeUtils
UnionType
ValueOfType
VerbosityLevel
VoidType
Interfaces
CompoundType
ConstantScalarType
DynamicFunctionReturnTypeExtension
DynamicFunctionThrowTypeExtension
DynamicMethodReturnTypeExtension
DynamicMethodThrowTypeExtension
DynamicStaticMethodReturnTypeExtension
DynamicStaticMethodThrowTypeExtension
ExpressionTypeResolverExtension
FunctionParameterClosureTypeExtension
FunctionParameterOutTypeExtension
FunctionTypeSpecifyingExtension
LateResolvableType
MethodParameterClosureTypeExtension
MethodParameterOutTypeExtension
MethodTypeSpecifyingExtension
OperatorTypeSpecifyingExtension
StaticMethodParameterClosureTypeExtension
StaticMethodParameterOutTypeExtension
StaticMethodTypeSpecifyingExtension
Type
TypeWithClassName
Overview
Namespace
Interface
Tree
1:
<?php
declare
(strict_types =
1
);
2:
3:
namespace
PHPStan\Type;
4:
5:
/** @api */
6:
interface
ConstantScalarType
extends
Type
7:
{
8:
9:
/**
10:
* @return int|float|string|bool|null
11:
*/
12:
public
function
getValue();
13:
14:
}
15: