SetaPDF_Extractor_Result_Segment This class represnts a segment/collection of items.

File: /SetaPDF/Extractor/Result/Segment.php

Class hierarchy

Implements

Summary

Properties


Methods

__construct()

public SetaPDF_Extractor_Result_Segment::__construct ( [ SetaPDF_Extractor_Result_HasBoundsInterface[] $items = array ( ) ] )

The constructor.

Parameters
$items : SetaPDF_Extractor_Result_HasBoundsInterface[]
 

cleanUp()

public void SetaPDF_Extractor_Result_Segment::cleanUp ( void )

Release memory and cycled references

count()

public int SetaPDF_Extractor_Result_Segment::count ( void )

Implementation of the Countable interface.

See

current()

public SetaPDF_Extractor_Result_HasBoundsInterface|null SetaPDF_Extractor_Result_Segment::current ( void )

Implementation of the Iterator interface.

See

getBounds()

public SetaPDF_Extractor_Result_Bounds[] SetaPDF_Extractor_Result_Segment::getBounds ( void )

Get the outer most bounds of all items in this segment.

This method will only return values of non-rotated items.

getItems()

public SetaPDF_Extractor_Result_HasBoundsInterface[] SetaPDF_Extractor_Result_Segment::getItems ( void )

Get all items.

key()

public integer SetaPDF_Extractor_Result_Segment::key ( void )

Implementation of the Iterator interface.

See

next()

public void SetaPDF_Extractor_Result_Segment::next ( void )

Implementation of the Iterator interface.

See

offsetExists()

public boolean SetaPDF_Extractor_Result_Segment::offsetExists ( integer $key )

Implementation of the ArrayAccess interface.

Parameters
$key : integer
 
See

offsetGet()

public SetaPDF_Extractor_Result_HasBoundsInterface SetaPDF_Extractor_Result_Segment::offsetGet ( integer $key )

Implementation of the ArrayAccess interface.

Parameters
$key : integer
 
Exceptions

Throws InvalidArgumentException

See

offsetSet()

public void SetaPDF_Extractor_Result_Segment::offsetSet ( null|integer $key, SetaPDF_Extractor_Result_HasBoundsInterface $value )

Implementation of the ArrayAccess interface.

Parameters
$key : null|integer
 
$value : SetaPDF_Extractor_Result_HasBoundsInterface
 
Exceptions

Throws InvalidArgumentException

See

offsetUnset()

public void SetaPDF_Extractor_Result_Segment::offsetUnset ( integer $key )

Implementation of the ArrayAccess interface.

Parameters
$key : integer
 
See

rewind()

public void SetaPDF_Extractor_Result_Segment::rewind ( void )

Implementation of the Iterator interface.

See

valid()

public boolean SetaPDF_Extractor_Result_Segment::valid ( void )

Implementation of the Iterator interface.

See