SetaPDF_Extractor_Result_Collection This class represents a collection of items implementing SetaPDF_Extractor_Result_HasBoundsInterface
File: /SetaPDF v2/Extractor/Result/Collection.php
Class hierarchy
Implements
Summary
Properties
$_items
protected SetaPDF_Extractor_Result_HasBoundsInterface[] SetaPDF_Extractor_Result_Collection::$_items = array()
Methods
__construct()
public SetaPDF_Extractor_Result_Collection::__construct (
[ SetaPDF_Extractor_Result_HasBoundsInterface[] $items = array (
) ]
)The constructor.
Parameters
current()
public SetaPDF_Extractor_Result_Collection::current (
void
): SetaPDF_Extractor_Result_HasBoundsInterface|nullImplementation of the Iterator interface.
See
getBounds()
Get the outer-most bounds of all items in this collection.
This method will only return values of non-rotated items.
getItems()
public SetaPDF_Extractor_Result_Collection::getItems (
void
): SetaPDF_Extractor_Result_HasBoundsInterface[]Get all items.
offsetGet()
public SetaPDF_Extractor_Result_Collection::offsetGet (
int $offset
): SetaPDF_Extractor_Result_HasBoundsInterfaceImplementation of the ArrayAccess interface.
Parameters
- $offset : int
Exceptions
Throws InvalidArgumentException
See
offsetSet()
public SetaPDF_Extractor_Result_Collection::offsetSet (
null|int $offset, SetaPDF_Extractor_Result_HasBoundsInterface $value
): voidImplementation of the ArrayAccess interface.
Parameters
- $offset : null|int
- $value : SetaPDF_Extractor_Result_HasBoundsInterface
Exceptions
Throws InvalidArgumentException