34 lines
611 B
PHP
Raw Normal View History

<?php
/**
* PHPWord
*
* @link https://github.com/PHPOffice/PHPWord
* @copyright 2014 PHPWord
2014-05-04 21:03:28 +04:00
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/
namespace PhpOffice\PhpWord\Writer\RTF\Element;
/**
* TextBreak element RTF writer
*
* @since 0.10.0
*/
class Title extends Element
{
/**
* Write element
*
* @return string
*/
public function write()
{
$rtfText = '';
$rtfText .= '\pard\nowidctlpar' . PHP_EOL;
$rtfText .= $this->element->getText();
$rtfText .= '\par' . PHP_EOL;
return $rtfText;
}
}