fix: typo in getFootnoteProperties() method name

Was "getFootnotePropoperties()".
Former bogus spelling is still working, albeit deprecated.
This commit is contained in:
Michaël Dupont 2019-12-09 11:29:18 +01:00
parent dfea4e12a6
commit 4852028743
2 changed files with 22 additions and 10 deletions

View File

@ -146,6 +146,18 @@ class Section extends AbstractContainer
* *
* @return FootnoteProperties * @return FootnoteProperties
*/ */
public function getFootnoteProperties()
{
return $this->footnoteProperties;
}
/**
* Get the footnote properties
*
* @deprecated Use the `getFootnoteProperties` method instead
*
* @return FootnoteProperties
*/
public function getFootnotePropoperties() public function getFootnotePropoperties()
{ {
return $this->footnoteProperties; return $this->footnoteProperties;

View File

@ -126,27 +126,27 @@ class Document extends AbstractPart
$xmlWriter->endElement(); $xmlWriter->endElement();
} }
//footnote properties // Footnote properties
if ($section->getFootnotePropoperties() !== null) { if ($section->getFootnoteProperties() !== null) {
$xmlWriter->startElement('w:footnotePr'); $xmlWriter->startElement('w:footnotePr');
if ($section->getFootnotePropoperties()->getPos() != null) { if ($section->getFootnoteProperties()->getPos() != null) {
$xmlWriter->startElement('w:pos'); $xmlWriter->startElement('w:pos');
$xmlWriter->writeAttribute('w:val', $section->getFootnotePropoperties()->getPos()); $xmlWriter->writeAttribute('w:val', $section->getFootnoteProperties()->getPos());
$xmlWriter->endElement(); $xmlWriter->endElement();
} }
if ($section->getFootnotePropoperties()->getNumFmt() != null) { if ($section->getFootnoteProperties()->getNumFmt() != null) {
$xmlWriter->startElement('w:numFmt'); $xmlWriter->startElement('w:numFmt');
$xmlWriter->writeAttribute('w:val', $section->getFootnotePropoperties()->getNumFmt()); $xmlWriter->writeAttribute('w:val', $section->getFootnoteProperties()->getNumFmt());
$xmlWriter->endElement(); $xmlWriter->endElement();
} }
if ($section->getFootnotePropoperties()->getNumStart() != null) { if ($section->getFootnoteProperties()->getNumStart() != null) {
$xmlWriter->startElement('w:numStart'); $xmlWriter->startElement('w:numStart');
$xmlWriter->writeAttribute('w:val', $section->getFootnotePropoperties()->getNumStart()); $xmlWriter->writeAttribute('w:val', $section->getFootnoteProperties()->getNumStart());
$xmlWriter->endElement(); $xmlWriter->endElement();
} }
if ($section->getFootnotePropoperties()->getNumRestart() != null) { if ($section->getFootnoteProperties()->getNumRestart() != null) {
$xmlWriter->startElement('w:numRestart'); $xmlWriter->startElement('w:numRestart');
$xmlWriter->writeAttribute('w:val', $section->getFootnotePropoperties()->getNumRestart()); $xmlWriter->writeAttribute('w:val', $section->getFootnoteProperties()->getNumRestart());
$xmlWriter->endElement(); $xmlWriter->endElement();
} }
$xmlWriter->endElement(); $xmlWriter->endElement();