PhpOffice\PhpPresentation\Shape\Chart\Series::hasDlblNumFormat PHP 메소드

hasDlblNumFormat() 공개 메소드

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

Usage 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());
 }