PhpOffice\PhpPresentation\Slide\Animation::getShapeCollection PHP Method

getShapeCollection() public method

public getShapeCollection ( ) : array
return array
    public function getShapeCollection()
    {
        return $this->shapeCollection;
    }

Usage Example

 public function testShape()
 {
     $oStub = $this->getMockForAbstractClass('PhpOffice\\PhpPresentation\\AbstractShape');
     $object = new Animation();
     $this->assertInternalType('array', $object->getShapeCollection());
     $this->assertCount(0, $object->getShapeCollection());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide\\Animation', $object->addShape($oStub));
     $this->assertInternalType('array', $object->getShapeCollection());
     $this->assertCount(1, $object->getShapeCollection());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide\\Animation', $object->setShapeCollection());
     $this->assertInternalType('array', $object->getShapeCollection());
     $this->assertCount(0, $object->getShapeCollection());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide\\Animation', $object->setShapeCollection(array($oStub)));
     $this->assertInternalType('array', $object->getShapeCollection());
     $this->assertCount(1, $object->getShapeCollection());
 }