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

setBulletFont() public method

Set bullet font
public setBulletFont ( string $pValue = 'Calibri' ) : Bullet
$pValue string
return Bullet
    public function setBulletFont($pValue = 'Calibri')
    {
        if ($pValue == '') {
            $pValue = 'Calibri';
        }
        $this->bulletFont = $pValue;
        return $this;
    }

Usage Example

示例#1
0
 /**
  * Test get/set bullet font
  */
 public function testSetGetBulletFont()
 {
     $object = new Bullet();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Bullet', $object->setBulletFont());
     $this->assertEquals('Calibri', $object->getBulletFont());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Bullet', $object->setBulletFont(''));
     $this->assertEquals('Calibri', $object->getBulletFont());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Bullet', $object->setBulletFont('Arial'));
     $this->assertEquals('Arial', $object->getBulletFont());
 }
All Usage Examples Of PhpOffice\PhpPresentation\Style\Bullet::setBulletFont