Skip to content

Commit 0851d55

Browse files
committed
added animation support
1 parent abd46f1 commit 0851d55

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/PhpPresentation/Slide.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ class Slide implements ComparableInterface, ShapeContainerInterface
8686
* @var \PhpOffice\PhpPresentation\Slide\Transition
8787
*/
8888
private $slideTransition;
89+
90+
/**
91+
*
92+
* @var \PhpOffice\PhpPresentation\Slide\Animation
93+
*/
94+
private $animations = array();
8995

9096
/**
9197
* Hash index
@@ -540,4 +546,27 @@ public function setIsVisible($value = true)
540546
$this->isVisible = (bool)$value;
541547
return $this;
542548
}
549+
550+
/**
551+
* Add an animation to the slide
552+
*
553+
* @param \PhpOffice\PhpPresentation\Slide\Animation
554+
* @return \PhpOffice\PhpPresentation\Slide\Animation
555+
*/
556+
public function addAnimation($animation)
557+
{
558+
$this->animations[] = $animation;
559+
return $animation;
560+
}
561+
562+
/**
563+
* Get collection of animations
564+
*
565+
* @return \PhpOffice\PhpPresentation\Slide\Animation
566+
*/
567+
568+
public function getAnimations()
569+
{
570+
return $this->animations;
571+
}
543572
}

0 commit comments

Comments
 (0)