PhpOffice\PhpPresentation\Slide::getAnimations PHP Method

getAnimations() public method

Get collection of animations
public getAnimations ( ) : Animation[]
return PhpOffice\PhpPresentation\Slide\Animation[]
    public function getAnimations()
    {
        return $this->animations;
    }

Usage Example

Example #1
0
 public function testAnimations()
 {
     $oStub = $this->getMockForAbstractClass('PhpOffice\\PhpPresentation\\Slide\\Animation');
     $object = new Slide();
     $this->assertInternalType('array', $object->getAnimations());
     $this->assertCount(0, $object->getAnimations());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide', $object->addAnimation($oStub));
     $this->assertInternalType('array', $object->getAnimations());
     $this->assertCount(1, $object->getAnimations());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide', $object->setAnimations());
     $this->assertInternalType('array', $object->getAnimations());
     $this->assertCount(0, $object->getAnimations());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide', $object->setAnimations(array($oStub)));
     $this->assertInternalType('array', $object->getAnimations());
     $this->assertCount(1, $object->getAnimations());
 }
All Usage Examples Of PhpOffice\PhpPresentation\Slide::getAnimations