PhpOffice\PhpPresentation\Shape\Chart\Series::hasDlblNumFormat PHP Method

hasDlblNumFormat() public method

Has Data Label NumFormat
public hasDlblNumFormat ( ) : string
return string
    public function hasDlblNumFormat()
    {
        return !empty($this->DlblNumFormat);
    }

Usage Example

Example #1
0
 public function testDataLabelNumFormat()
 {
     $object = new Series();
     $this->assertEmpty($object->getDlblNumFormat());
     $this->assertFalse($object->hasDlblNumFormat());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Series', $object->setDlblNumFormat('#%'));
     $this->assertEquals('#%', $object->getDlblNumFormat());
     $this->assertTrue($object->hasDlblNumFormat());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Series', $object->setDlblNumFormat());
     $this->assertEmpty($object->getDlblNumFormat());
     $this->assertFalse($object->hasDlblNumFormat());
 }