Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change private to protected #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/XMLSecurityDSig.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,25 +83,25 @@ class XMLSecurityDSig
public $idNS = array();

/** @var string|null */
private $signedInfo = null;
protected $signedInfo = null;

/** @var DomXPath|null */
private $xPathCtx = null;
protected $xPathCtx = null;

/** @var string|null */
private $canonicalMethod = null;
protected $canonicalMethod = null;

/** @var string */
private $prefix = '';
protected $prefix = '';

/** @var string */
private $searchpfx = 'secdsig';
protected $searchpfx = 'secdsig';

/**
* This variable contains an associative array of validated nodes.
* @var array|null
*/
private $validatedNodes = null;
protected $validatedNodes = null;

/**
* @param string $prefix
Expand All @@ -123,7 +123,7 @@ public function __construct($prefix='ds')
/**
* Reset the XPathObj to null
*/
private function resetXPathObj()
protected function resetXPathObj()
{
$this->xPathCtx = null;
}
Expand All @@ -133,7 +133,7 @@ private function resetXPathObj()
*
* @return DOMXPath|null
*/
private function getXPathObj()
protected function getXPathObj()
{
if (empty($this->xPathCtx) && ! empty($this->sigNode)) {
$xpath = new DOMXPath($this->sigNode->ownerDocument);
Expand Down Expand Up @@ -252,7 +252,7 @@ public function setCanonicalMethod($method)
* @param null|array $prefixList
* @return string
*/
private function canonicalizeData($node, $canonicalmethod, $arXPath=null, $prefixList=null)
protected function canonicalizeData($node, $canonicalmethod, $arXPath=null, $prefixList=null)
{
$exclusive = false;
$withComments = false;
Expand Down Expand Up @@ -604,7 +604,7 @@ public function validateReference()
* @param null|array $arTransforms
* @param null|array $options
*/
private function addRefInternal($sinfoNode, $node, $algorithm, $arTransforms=null, $options=null)
protected function addRefInternal($sinfoNode, $node, $algorithm, $arTransforms=null, $options=null)
{
$prefix = null;
$prefix_ns = null;
Expand Down