SetaPDF_Extractor_Result_Segment This class represents a segment/collection of items
File: /SetaPDF v2/Extractor/Result/Segment.php
WARNING: This class is marked as deprecated!
Use SetaPDF_Extractor_Result_Collection
instead!
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