ClassStub
extends ConstStub
in package
Represents a PHP class identifier.
Tags
Table of Contents
- ARRAY_ASSOC = 1
- ARRAY_INDEXED = 2
- STRING_BINARY = 1
- STRING_UTF8 = 2
- TYPE_ARRAY = 3
- TYPE_OBJECT = 4
- TYPE_REF = 1
- TYPE_RESOURCE = 5
- TYPE_STRING = 2
- $attr : mixed
- $class : mixed
- $cut : mixed
- $handle : mixed
- $position : mixed
- $refCount : mixed
- $type : mixed
- $value : mixed
- $defaultProperties : mixed
- __construct() : mixed
- __toString() : string
- wrapCallable() : mixed
Constants
ARRAY_ASSOC
public
mixed
ARRAY_ASSOC
= 1
ARRAY_INDEXED
public
mixed
ARRAY_INDEXED
= 2
STRING_BINARY
public
mixed
STRING_BINARY
= 1
STRING_UTF8
public
mixed
STRING_UTF8
= 2
TYPE_ARRAY
public
mixed
TYPE_ARRAY
= 3
TYPE_OBJECT
public
mixed
TYPE_OBJECT
= 4
TYPE_REF
public
mixed
TYPE_REF
= 1
TYPE_RESOURCE
public
mixed
TYPE_RESOURCE
= 5
TYPE_STRING
public
mixed
TYPE_STRING
= 2
Properties
$attr
public
mixed
$attr
= []
$class
public
mixed
$class
= ''
$cut
public
mixed
$cut
= 0
$handle
public
mixed
$handle
= 0
$position
public
mixed
$position
= 0
$refCount
public
mixed
$refCount
= 0
$type
public
mixed
$type
= self::TYPE_REF
$value
public
mixed
$value
$defaultProperties
private
static mixed
$defaultProperties
= []
Methods
__construct()
public
__construct(string $identifier[, callable $callable = null ]) : mixed
Parameters
- $identifier : string
-
A PHP identifier, e.g. a class, method, interface, etc. name
- $callable : callable = null
-
The callable targeted by the identifier when it is ambiguous or not a real PHP identifier
Return values
mixed —__toString()
public
__toString() : string
Return values
string —wrapCallable()
public
static wrapCallable(mixed $callable) : mixed
Parameters
- $callable : mixed