PhpOffice\PhpPresentation\Slide\SlideMaster::getAllSlideLayouts PHP 메소드

getAllSlideLayouts() 공개 메소드

public getAllSlideLayouts ( ) : SlideLayout[]
리턴 SlideLayout[]
    public function getAllSlideLayouts()
    {
        return $this->slideLayouts;
    }

Usage Example

예제 #1
0
 public function testLayout()
 {
     $object = new SlideMaster();
     // Mock Post
     $mockSlideLayout = $this->getMockForAbstractClass('PhpOffice\\PhpPresentation\\Slide\\SlideLayout', array($object));
     $this->assertEmpty($object->getAllSlideLayouts());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide\\SlideLayout', $object->createSlideLayout());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide\\SlideLayout', $object->addSlideLayout($mockSlideLayout));
     $this->assertCount(2, $object->getAllSlideLayouts());
 }
All Usage Examples Of PhpOffice\PhpPresentation\Slide\SlideMaster::getAllSlideLayouts