ClassStub
class ClassStub extends ConstStub
Represents a PHP class identifier.
Constants
| TYPE_REF | |
| TYPE_STRING | |
| TYPE_ARRAY | |
| TYPE_OBJECT | |
| TYPE_RESOURCE | |
| STRING_BINARY | |
| STRING_UTF8 | |
| ARRAY_ASSOC | |
| ARRAY_INDEXED |
Properties
| $type | from Stub | ||
| $class | from Stub | ||
| $value | from Stub | ||
| $cut | from Stub | ||
| $handle | from Stub | ||
| $refCount | from Stub | ||
| $position | from Stub | ||
| $attr | from Stub |
Methods
| __construct(string $identifier, callable $callable = null) Constructor. | ||
| __toString() | from ConstStub | |
| static | wrapCallable($callable) |
Details
__construct(string $identifier, callable $callable = null)
Constructor.
Parameters
| string | $identifier | A PHP identifier, e.g. a class, method, interface, etc. name |
| callable | $callable | The callable targeted by the identifier when it is ambiguous or not a real PHP identifier |
__toString()
static wrapCallable($callable)
Parameters
| $callable |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/VarDumper/Caster/ClassStub.html