PhpOffice\PhpPresentation\Shape\Group::getShapeCollection PHP Метод

getShapeCollection() публичный Метод

Get collection of shapes
public getShapeCollection ( ) : ArrayObject
Результат ArrayObject
    public function getShapeCollection()
    {
        return $this->shapeCollection;
    }

Usage Example

Пример #1
0
 public function testAdd()
 {
     $object = new Group();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart', $object->createChartShape());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Drawing', $object->createDrawingShape());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Line', $object->createLineShape(10, 10, 10, 10));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->createRichTextShape());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Table', $object->createTableShape());
     $this->assertEquals(5, $object->getShapeCollection()->count());
 }
All Usage Examples Of PhpOffice\PhpPresentation\Shape\Group::getShapeCollection