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

isStrikethrough() public method

Get Strikethrough
public isStrikethrough ( ) : boolean
return boolean
    public function isStrikethrough()
    {
        return $this->strikethrough;
    }

Usage Example

Esempio n. 1
0
 /**
  * Test get/set strikethrough
  */
 public function testSetIsStriketrough()
 {
     $object = new Font();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setStrikethrough());
     $this->assertFalse($object->isStrikethrough());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setStrikethrough(''));
     $this->assertFalse($object->isStrikethrough());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setStrikethrough(false));
     $this->assertFalse($object->isStrikethrough());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setStrikethrough(true));
     $this->assertTrue($object->isStrikethrough());
 }