PhpOffice\PhpPresentation\Style\Font::isBold PHP Метод

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

Get Bold
public isBold ( ) : boolean
Результат boolean
    public function isBold()
    {
        return $this->bold;
    }

Usage Example

Пример #1
0
 /**
  * Test get/set bold
  */
 public function testSetIsBold()
 {
     $object = new Font();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setBold());
     $this->assertFalse($object->isBold());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setBold(''));
     $this->assertFalse($object->isBold());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setBold(false));
     $this->assertFalse($object->isBold());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setBold(true));
     $this->assertTrue($object->isBold());
 }