setFont() публичный Метод

Set font
public setFont ( Font $pFont = null ) : Paragraph
$pFont PhpOffice\PhpPresentation\Style\Font Font
Результат PhpOffice\PhpPresentation\Shape\RichText\Paragraph
Пример #1
0
 public function testFont()
 {
     $object = new Axis();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Axis', $object->setFont());
     $this->assertNull($object->getFont());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Axis', $object->setFont(new Font()));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->getFont());
 }