Skip to content

Commit 2473357

Browse files
authored
Change private to protected (#152)
Change private to protected so the class can be extended.
1 parent 90e9df0 commit 2473357

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/XMLSecurityDSig.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,25 +183,25 @@ class XMLSecurityDSig
183183
public $forbidDoctype = true;
184184

185185
/** @var string|null */
186-
private $signedInfo = null;
186+
protected $signedInfo = null;
187187

188188
/** @var DomXPath|null */
189-
private $xPathCtx = null;
189+
protected $xPathCtx = null;
190190

191191
/** @var string|null */
192-
private $canonicalMethod = null;
192+
protected $canonicalMethod = null;
193193

194194
/** @var string */
195-
private $prefix = '';
195+
protected $prefix = '';
196196

197197
/** @var string */
198-
private $searchpfx = 'secdsig';
198+
protected $searchpfx = 'secdsig';
199199

200200
/**
201201
* This variable contains an associative array of validated nodes.
202202
* @var array|null
203203
*/
204-
private $validatedNodes = null;
204+
protected $validatedNodes = null;
205205

206206
/**
207207
* @param string $prefix
@@ -264,7 +264,7 @@ public function enableLegacyMode()
264264
/**
265265
* Reset the XPathObj to null
266266
*/
267-
private function resetXPathObj()
267+
protected function resetXPathObj()
268268
{
269269
$this->xPathCtx = null;
270270
}
@@ -274,7 +274,7 @@ private function resetXPathObj()
274274
*
275275
* @return DOMXPath|null
276276
*/
277-
private function getXPathObj()
277+
protected function getXPathObj()
278278
{
279279
if (empty($this->xPathCtx) && ! empty($this->sigNode)) {
280280
$xpath = new DOMXPath($this->sigNode->ownerDocument);
@@ -401,7 +401,7 @@ public function setCanonicalMethod($method)
401401
* @param null|array $prefixList
402402
* @return string
403403
*/
404-
private function canonicalizeData($node, $canonicalmethod, $arXPath=null, $prefixList=null)
404+
protected function canonicalizeData($node, $canonicalmethod, $arXPath=null, $prefixList=null)
405405
{
406406
$exclusive = false;
407407
$withComments = false;
@@ -816,7 +816,7 @@ public function validateReference()
816816
* @param null|array $arTransforms
817817
* @param null|array $options
818818
*/
819-
private function addRefInternal($sinfoNode, $node, $algorithm, $arTransforms=null, $options=null)
819+
protected function addRefInternal($sinfoNode, $node, $algorithm, $arTransforms=null, $options=null)
820820
{
821821
$prefix = null;
822822
$prefix_ns = null;

0 commit comments

Comments
 (0)