@@ -30,33 +30,33 @@ class TemplateProcessor
3030 *
3131 * @var mixed
3232 */
33- private $ zipClass ;
33+ protected $ zipClass ;
3434
3535 /**
3636 * @var string Temporary document filename (with path).
3737 */
38- private $ temporaryDocumentFilename ;
38+ protected $ temporaryDocumentFilename ;
3939
4040 /**
4141 * Content of main document part (in XML format) of the temporary document.
4242 *
4343 * @var string
4444 */
45- private $ temporaryDocumentMainPart ;
45+ protected $ temporaryDocumentMainPart ;
4646
4747 /**
4848 * Content of headers (in XML format) of the temporary document.
4949 *
5050 * @var string[]
5151 */
52- private $ temporaryDocumentHeaders = array ();
52+ protected $ temporaryDocumentHeaders = array ();
5353
5454 /**
5555 * Content of footers (in XML format) of the temporary document.
5656 *
5757 * @var string[]
5858 */
59- private $ temporaryDocumentFooters = array ();
59+ protected $ temporaryDocumentFooters = array ();
6060
6161 /**
6262 * @since 0.12.0 Throws CreateTemporaryFileException and CopyFileException instead of Exception.
@@ -389,7 +389,7 @@ protected function getVariablesForPart($documentPartXML)
389389 * @param integer $index
390390 * @return string
391391 */
392- private function getFooterName ($ index )
392+ protected function getFooterName ($ index )
393393 {
394394 return sprintf ('word/footer%d.xml ' , $ index );
395395 }
@@ -400,7 +400,7 @@ private function getFooterName($index)
400400 * @param integer $index
401401 * @return string
402402 */
403- private function getHeaderName ($ index )
403+ protected function getHeaderName ($ index )
404404 {
405405 return sprintf ('word/header%d.xml ' , $ index );
406406 }
@@ -412,7 +412,7 @@ private function getHeaderName($index)
412412 * @return integer
413413 * @throws \PhpOffice\PhpWord\Exception\Exception
414414 */
415- private function findRowStart ($ offset )
415+ protected function findRowStart ($ offset )
416416 {
417417 $ rowStart = strrpos ($ this ->temporaryDocumentMainPart , '<w:tr ' , ((strlen ($ this ->temporaryDocumentMainPart ) - $ offset ) * -1 ));
418418
@@ -432,7 +432,7 @@ private function findRowStart($offset)
432432 * @param integer $offset
433433 * @return integer
434434 */
435- private function findRowEnd ($ offset )
435+ protected function findRowEnd ($ offset )
436436 {
437437 return strpos ($ this ->temporaryDocumentMainPart , '</w:tr> ' , $ offset ) + 7 ;
438438 }
@@ -444,7 +444,7 @@ private function findRowEnd($offset)
444444 * @param integer $endPosition
445445 * @return string
446446 */
447- private function getSlice ($ startPosition , $ endPosition = 0 )
447+ protected function getSlice ($ startPosition , $ endPosition = 0 )
448448 {
449449 if (!$ endPosition ) {
450450 $ endPosition = strlen ($ this ->temporaryDocumentMainPart );
0 commit comments