PhpOffice\PhpPresentation\PresentationProperties::getZoom PHP Метод

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

Return the zoom (in percentage)
public getZoom ( ) : float
Результат float
    public function getZoom()
    {
        return $this->zoom;
    }

Usage Example

 public function testZoom()
 {
     $object = new PresentationProperties();
     $this->assertEquals(1, $object->getZoom());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PresentationProperties', $object->setZoom('AAAA'));
     $this->assertEquals(1, $object->getZoom());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PresentationProperties', $object->setZoom(2.3));
     $this->assertEquals(2.3, $object->getZoom());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PresentationProperties', $object->setZoom());
     $this->assertEquals(1, $object->getZoom());
 }