PhpOffice\PhpPresentation\Style\Bullet::setBulletNumericStyle PHP Method

setBulletNumericStyle() public method

Set bullet numeric style
public setBulletNumericStyle ( string $pValue = self::NUMERIC_DEFAULT ) : Bullet
$pValue string
return Bullet
    public function setBulletNumericStyle($pValue = self::NUMERIC_DEFAULT)
    {
        $this->bulletNumericStyle = $pValue;
        return $this;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Test get/set bullet numeric style
  */
 public function testSetGetBulletNumericStyle()
 {
     $object = new Bullet();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Bullet', $object->setBulletNumericStyle());
     $this->assertEquals(Bullet::NUMERIC_DEFAULT, $object->getBulletNumericStyle());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Bullet', $object->setBulletNumericStyle(Bullet::NUMERIC_ALPHALCPARENBOTH));
     $this->assertEquals(Bullet::NUMERIC_ALPHALCPARENBOTH, $object->getBulletNumericStyle());
 }