public setParagraphs ( |
||
$paragraphs | Array of paragraphs | |
리턴 |
public function setParagraphs($paragraphs = null)
{
if (!is_array($paragraphs)) {
throw new \Exception("Invalid \\PhpOffice\\PhpPresentation\\Shape\\RichText\\Paragraph[] array passed.");
}
$this->richTextParagraphs = $paragraphs;
$this->activeParagraph = count($this->richTextParagraphs) - 1;
return $this;
}
/** * @expectedException \Exception * expectedExceptionMessage Invalid \PhpOffice\PhpPresentation\Shape\RichText\Paragraph[] array passed. */ public function testParagraphsException() { $object = new RichText(); $object->setParagraphs(1000); }