DumperPrefixCollection::addPrefixRoute()

DumperPrefixCollection addPrefixRoute(DumperRoute $route) Adds a route in the tree. Parameters DumperRoute $route The route Return Value DumperPrefixCollection The node the route was added to Exceptions LogicException

DumperPrefixCollection

class DumperPrefixCollection extends DumperCollection Prefix tree of routes preserving routes order. Methods (DumperCollection|DumperRoute)[] all() Returns the children routes and collections. from DumperCollection add(DumperRoute|DumperCollection $child) Adds a route or collection. from DumperCollection setAll(array $children) Sets children. from DumperCollection Iterator getIterator() Returns an iterator over the children. from DumperCollection DumperCollection getRoot(

DumperInterface::leaveHash()

leaveHash(Cursor $cursor, int $type, string $class, bool $hasChild, int $cut) Dumps while leaving an hash. Parameters Cursor $cursor The Cursor position in the dump int $type A Cursor::HASH_* const for the type of hash string $class The object class, resource type or array count bool $hasChild When the dump of the hash has child item int $cut The number of items the hash has been cut by

DumperInterface::isProxyCandidate()

bool isProxyCandidate(Definition $definition) Inspects whether the given definitions should produce proxy instantiation logic in the dumped container. Parameters Definition $definition Return Value bool

DumperInterface::getProxyFactoryCode()

string getProxyFactoryCode(Definition $definition, $id) Generates the code to be used to instantiate a proxy in the dumped factory code. Parameters Definition $definition $id Return Value string

DumperInterface::getProxyCode()

string getProxyCode(Definition $definition) Generates the code for the lazy proxy. Parameters Definition $definition Return Value string

DumperInterface::enterHash()

enterHash(Cursor $cursor, int $type, string $class, bool $hasChild) Dumps while entering an hash. Parameters Cursor $cursor The Cursor position in the dump int $type A Cursor::HASH_* const for the type of hash string $class The object class, resource type or array count bool $hasChild When the dump of the hash has child item

DumperInterface::dumpString()

dumpString(Cursor $cursor, string $str, bool $bin, int $cut) Dumps a string. Parameters Cursor $cursor The Cursor position in the dump string $str The string being dumped bool $bin Whether $str is UTF-8 or binary encoded int $cut The number of characters $str has been cut by

DumperInterface::dumpScalar()

dumpScalar(Cursor $cursor, string $type, scalar $value) Dumps a scalar value. Parameters Cursor $cursor The Cursor position in the dump string $type The PHP type of the value being dumped scalar $value The scalar value being dumped

DumperInterface

interface DumperInterface DumperInterface used by Data objects. Methods dumpScalar(Cursor $cursor, string $type, scalar $value) Dumps a scalar value. dumpString(Cursor $cursor, string $str, bool $bin, int $cut) Dumps a string. enterHash(Cursor $cursor, int $type, string $class, bool $hasChild) Dumps while entering an hash. leaveHash(Cursor $cursor, int $type, string $class, bool $hasChild, int $cut) Dumps while leaving an hash. Details dump