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

getColor() public method

Get Color
public getColor ( ) : Color | SchemeColor
return Color | SchemeColor
    public function getColor()
    {
        return $this->color;
    }

Usage Example

Example #1
0
 /**
  * Test get/set color
  */
 public function testSetGetColor()
 {
     $object = new Font();
     $this->assertEquals(Color::COLOR_BLACK, $object->getColor()->getARGB());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setColor(new Color(Color::COLOR_BLUE)));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Color', $object->getColor());
     $this->assertEquals(Color::COLOR_BLUE, $object->getColor()->getARGB());
 }
All Usage Examples Of PhpOffice\PhpPresentation\Style\Font::getColor