setParagraphs() public method

Set paragraphs
public setParagraphs ( Paragraph[] $paragraphs = null ) : RichText
$paragraphs PhpOffice\PhpPresentation\Shape\RichText\Paragraph[] Array of paragraphs
return RichText
Ejemplo n.º 1
0
 /**
  * @expectedException \Exception
  * expectedExceptionMessage Invalid \PhpOffice\PhpPresentation\Shape\RichText\Paragraph[] array passed.
  */
 public function testParagraphsException()
 {
     $object = new RichText();
     $object->setParagraphs(1000);
 }