38 lines
722 B
PHP
Raw Normal View History

<?php
/**
* PHPWord
*
* @link https://github.com/PHPOffice/PHPWord
* @copyright 2014 PHPWord
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
*/
namespace PhpOffice\PhpWord\Writer\HTML\Style;
/**
* Paragraph style HTML writer
*
* @since 0.10.0
*/
2014-04-26 11:14:27 +07:00
class Paragraph extends AbstractStyle
{
/**
* Write style
*
* @return string
*/
public function write()
{
if (!($this->style instanceof \PhpOffice\PhpWord\Style\Paragraph)) {
return;
}
$css = array();
if ($this->style->getAlign()) {
$css['text-align'] = $this->style->getAlign();
}
2014-04-26 11:14:27 +07:00
return $this->assembleCss($css);
}
}