Zend\Memory\Value
String value object
It's an OO string wrapper.
Used to intercept string updates.
Synopsis
class Value
implements
ArrayAccess,Countable
{
- // members
- private string $value;
- private Movable $container;
- private bool $trace;
- // methods
- public void __construct()
- public int count()
- public bool offsetExists()
- public string offsetGet()
- public void offsetSet()
- public void offsetUnset()
- public string __toString()
- public string getRef()
- public void startTrace()
Hierarchy
Implements
Members
private
- $container
—
Zend\Memory\Container\Movable
Container - $trace
—
Zend\Memory\bool
Boolean flag which signals to trace value modifications - $value
—
string
Value
Methods
public
- __construct() — Object constructor
- __toString() — To string conversion
- count() — Countable
- getRef() — Get string value reference
- offsetExists() — ArrayAccess interface method returns true if string offset exists
- offsetGet() — ArrayAccess interface method Get character at $offset position
- offsetSet() — ArrayAccess interface method Set character at $offset position
- offsetUnset() — ArrayAccess interface method Unset character at $offset position
- startTrace() — Start modifications trace