PHPWord/src/PhpWord/Element/Footnote.php

71 lines
1.3 KiB
PHP
Raw Normal View History

<?php
/**
* PHPWord
*
2014-03-27 23:55:06 +07:00
* @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 AbstractElement
{
/**
* Paragraph style
*
* @var string|Paragraph
*/
2014-04-09 21:35:55 +07:00
protected $paragraphStyle;
/**
* Create new instance
*
* @param string|array|Paragraph $paragraphStyle
*/
public function __construct($paragraphStyle = null)
{
$this->container = 'footnote';
2014-04-03 08:44:41 +07:00
$this->paragraphStyle = $this->setStyle(new Paragraph(), $paragraphStyle);
}
/**
* Get paragraph style
*
* @return string|Paragraph
*/
public function getParagraphStyle()
{
return $this->paragraphStyle;
}
/**
* Get Footnote Reference ID
*
* @return int
2014-04-03 08:44:41 +07:00
* @deprecated 0.9.2
* @codeCoverageIgnore
*/
public function getReferenceId()
{
2014-04-03 08:44:41 +07:00
return $this->getRelationId();
}
/**
* Set Footnote Reference ID
*
* @param int $rId
2014-04-03 08:44:41 +07:00
* @deprecated 0.9.2
* @codeCoverageIgnore
*/
public function setReferenceId($rId)
{
$this->setRelationId($rId);
}
}