71 lines
1.4 KiB
PHP
71 lines
1.4 KiB
PHP
<?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\Element;
|
|
|
|
use PhpOffice\PhpWord\Style\Paragraph;
|
|
|
|
/**
|
|
* Footnote element
|
|
*/
|
|
class Footnote extends AbstractContainer
|
|
{
|
|
/**
|
|
* Paragraph style
|
|
*
|
|
* @var string|\PhpOffice\PhpWord\Style\Paragraph
|
|
*/
|
|
protected $paragraphStyle;
|
|
|
|
/**
|
|
* Create new instance
|
|
*
|
|
* @param string|array|\PhpOffice\PhpWord\Style\Paragraph $paragraphStyle
|
|
*/
|
|
public function __construct($paragraphStyle = null)
|
|
{
|
|
$this->container = 'footnote';
|
|
$this->paragraphStyle = $this->setStyle(new Paragraph(), $paragraphStyle);
|
|
}
|
|
|
|
/**
|
|
* Get paragraph style
|
|
*
|
|
* @return string|\PhpOffice\PhpWord\Style\Paragraph
|
|
*/
|
|
public function getParagraphStyle()
|
|
{
|
|
return $this->paragraphStyle;
|
|
}
|
|
|
|
/**
|
|
* Get Footnote Reference ID
|
|
*
|
|
* @return int
|
|
* @deprecated 0.10.0
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getReferenceId()
|
|
{
|
|
return $this->getRelationId();
|
|
}
|
|
|
|
/**
|
|
* Set Footnote Reference ID
|
|
*
|
|
* @param int $rId
|
|
* @deprecated 0.10.0
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function setReferenceId($rId)
|
|
{
|
|
$this->setRelationId($rId);
|
|
}
|
|
}
|