PhpOffice\PhpPresentation\Style\Outline::getWidth PHP Method

getWidth() public method

public getWidth ( ) : integer
return integer
    public function getWidth()
    {
        return $this->width;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Test get/set width
  */
 public function testSetGetWidth()
 {
     $object = new Outline();
     $this->assertNull($object->getWidth());
     $value = rand(1, 100);
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Outline', $object->setWidth($value));
     $this->assertEquals($value, $object->getWidth());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Outline', $object->setWidth(1.5));
     $this->assertEquals(1, $object->getWidth());
 }
All Usage Examples Of PhpOffice\PhpPresentation\Style\Outline::getWidth