Container of IMessagePart items for a parent IMultiPart.
- author Zaahid Bateson
CloneableInstantiableIterable
- Children
- Implements
ArrayAccess Iterator RecursiveIterator Traversable
Methods |
public __construct(array $children = [])
|
public add(ZBateson Adds the passed IMessagePart to the container in the passed position. If position is not passed or null, the part is added to the end, as the last child in the container.
|
public current() : ?mixed
|
public getChildren() : ?RecursiveIterator If the current element points to an IMultiPart, its child iterator is returned by calling {@see IMultiPart::getChildIterator()}.
|
public hasChildren() : bool Returns true if the current element is an IMultiPart. Note that the iterator may still be empty. |
public key() : int |
public next() : void |
public offsetExists(?mixed $offset) : bool
|
public offsetGet(?mixed $offset) : ?mixed
|
public offsetSet(?mixed $offset, ?mixed $value) : void
|
public offsetUnset( $offset) : void
|
public remove(ZBateson Removes the passed part, and returns the integer position it occupied.
|
public rewind() : void |
public valid() : bool |
Properties |
protected array $children
|
protected $position = 0
|