Iterator
extends IteratorIterator
in package
Table of Contents
Properties
- $position : int
- Current iterator position.
- $subject : PhpPresentation
- Presentation to iterate.
Methods
- __construct() : mixed
- Create a new slide iterator.
- current() : Slide
- Current \PhpOffice\PhpPresentation\Slide.
- key() : int
- Current key.
- next() : void
- Next value.
- rewind() : void
- Rewind iterator.
- valid() : bool
- More \PhpOffice\PhpPresentation\Slide instances available?
Properties
$position
Current iterator position.
private
int
$position
= 0
$subject
Presentation to iterate.
private
PhpPresentation
$subject
Methods
__construct()
Create a new slide iterator.
public
__construct(PhpPresentation $subject) : mixed
Parameters
- $subject : PhpPresentation
current()
Current \PhpOffice\PhpPresentation\Slide.
public
current() : Slide
Attributes
- #[ReturnTypeWillChange]
Return values
Slidekey()
Current key.
public
key() : int
Attributes
- #[ReturnTypeWillChange]
Return values
intnext()
Next value.
public
next() : void
Attributes
- #[ReturnTypeWillChange]
rewind()
Rewind iterator.
public
rewind() : void
Attributes
- #[ReturnTypeWillChange]
valid()
More \PhpOffice\PhpPresentation\Slide instances available?
public
valid() : bool
Attributes
- #[ReturnTypeWillChange]