Skip to content

Commit c3817bc

Browse files
committed
Refactor: Change PHPPowerPoint_SlideIterator to PHPPowerPoint_Slide_Iterator
1 parent d04b0f4 commit c3817bc

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
- QA: Cleanup source code for PSR dan PHPDoc compatibility - @ivanlanin
4444
- Doc: Initiate documentation - @ivanlanin
4545
- Refactor: Change PHPPowerPoint_Shape_Shadow to PHPPowerPoint_Style_Shadow because it's a style, not a shape - @ivanlanin
46+
- Refactor: Change PHPPowerPoint_SlideIterator to PHPPowerPoint_Slide_Iterator - @ivanlanin
4647

4748
## 0.1.0
4849

Classes/PHPPowerPoint.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,11 @@ public function addExternalSlide(PHPPowerPoint_Slide $slide)
288288
/**
289289
* Get slide iterator
290290
*
291-
* @return PHPPowerPoint_SlideIterator
291+
* @return PHPPowerPoint_Slide_Iterator
292292
*/
293293
public function getSlideIterator()
294294
{
295-
return new PHPPowerPoint_SlideIterator($this);
295+
return new PHPPowerPoint_Slide_Iterator($this);
296296
}
297297

298298
/**

Classes/PHPPowerPoint/SlideIterator.php renamed to Classes/PHPPowerPoint/Slide/Iterator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020
*
2121
* @category PHPPowerPoint
22-
* @package PHPPowerPoint
22+
* @package PHPPowerPoint_Slide
2323
* @copyright Copyright (c) 2009 - 2010 PHPPowerPoint (http://www.codeplex.com/PHPPowerPoint)
2424
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
2525
* @version ##VERSION##, ##DATE##
2626
*/
2727

2828
/**
29-
* PHPPowerPoint_SlideIterator
29+
* PHPPowerPoint_Slide_Iterator
3030
*
3131
* Used to iterate slides in PHPPowerPoint
3232
*
3333
* @category PHPPowerPoint
34-
* @package PHPPowerPoint
34+
* @package PHPPowerPoint_Slide
3535
* @copyright Copyright (c) 2009 - 2010 PHPPowerPoint (http://www.codeplex.com/PHPPowerPoint)
3636
*/
37-
class PHPPowerPoint_SlideIterator extends IteratorIterator
37+
class PHPPowerPoint_Slide_Iterator extends IteratorIterator
3838
{
3939
/**
4040
* Presentation to iterate

Tests/PHPPowerPoint/PHPPowerPointTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testConstruct()
2929
$this->assertEquals(0, $object->getIndex($slide));
3030
$this->assertEquals(1, $object->getSlideCount());
3131
$this->assertEquals(0, $object->getActiveSlideIndex());
32-
$this->assertInstanceOf('PHPPowerPoint_SlideIterator', $object->getSlideIterator());
32+
$this->assertInstanceOf('PHPPowerPoint_Slide_Iterator', $object->getSlideIterator());
3333
}
3434

3535
/**

0 commit comments

Comments
 (0)