PhpOffice\PhpPresentation\Style\Font::getSize PHP Method

getSize() public method

Get Size
public getSize ( ) : double
return double
    public function getSize()
    {
        return $this->size;
    }

Usage Example

Example #1
0
 /**
  * Test get/set size
  */
 public function testSetGetSize()
 {
     $object = new Font();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setSize());
     $this->assertEquals(10, $object->getSize());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setSize(''));
     $this->assertEquals(10, $object->getSize());
     $value = rand(1, 100);
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setSize($value));
     $this->assertEquals($value, $object->getSize());
 }