Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
[zendframework/zendframework#3919] Replace private with protected vis…
Browse files Browse the repository at this point in the history
…ibility
  • Loading branch information
weierophinney committed Apr 30, 2013
1 parent 57b865c commit 951b6e5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions src/Client/DotNet.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,31 @@ class DotNet extends SOAPClient
* Curl HTTP client adapter.
* @var CurlClient
*/
private $curlClient = null;
protected $curlClient = null;

/**
* The last request headers.
* @var string
*/
private $lastRequestHeaders = '';
protected $lastRequestHeaders = '';

/**
* The last response headers.
* @var string
*/
private $lastResponseHeaders = '';
protected $lastResponseHeaders = '';

/**
* SOAP client options.
* @var array
*/
private $options = array();
protected $options = array();

/**
* Should NTLM authentication be used?
* @var boolean
*/
private $useNtlm = false;
protected $useNtlm = false;

/**
* Constructor
Expand Down Expand Up @@ -225,7 +225,7 @@ protected function _preProcessResult($result)
* @param array $headers The headers to flatten.
* @return string The headers string.
*/
private function flattenHeaders(array $headers)
protected function flattenHeaders(array $headers)
{
$result = '';

Expand Down
22 changes: 11 additions & 11 deletions src/Wsdl.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ class Wsdl
* DOM Instance
* @var DOMDocument
*/
private $dom;
protected $dom;

/**
* Types defined on schema
* @var array
*/
private $includedTypes = array();
protected $includedTypes = array();

/**
* @var DOMElement
*/
private $schema = null;
protected $schema = null;

/**
* Strategy for detection of complex types
Expand All @@ -70,13 +70,13 @@ class Wsdl
* URI where the WSDL will be available
* @var string
*/
private $uri;
protected $uri;

/**
* Root XML_Tree_Node
* @var DOMElement WSDL
*/
private $wsdl;
protected $wsdl;

/**
* @param string $name Name of the Web Service being Described
Expand Down Expand Up @@ -752,7 +752,7 @@ public function addComplexType($type)
* @return DOMElement parsed element
* @throws Exception\RuntimeException if $element is not an array
*/
private function _parseElement($element)
protected function _parseElement($element)
{
if (!is_array($element)) {
throw new Exception\RuntimeException('The "element" parameter needs to be an associative array.');
Expand Down Expand Up @@ -788,7 +788,7 @@ private function _parseElement($element)
* @param mixed $value
* @return string safe value or original $value
*/
private function sanitizeAttributeValueByName($name, $value)
protected function sanitizeAttributeValueByName($name, $value)
{
switch (strtolower($name)) {
case 'targetnamespace':
Expand All @@ -811,7 +811,7 @@ private function sanitizeAttributeValueByName($name, $value)
* @param array $attributes
* @param bool $withSanitizer
*/
private function arrayToAttributes(\DOMNode $node, array $attributes, $withSanitizer = true)
protected function arrayToAttributes(\DOMNode $node, array $attributes, $withSanitizer = true)
{
foreach($attributes as $attributeName => $attributeValue) {
if ($withSanitizer) {
Expand All @@ -829,7 +829,7 @@ private function arrayToAttributes(\DOMNode $node, array $attributes, $withSanit
* @param string $attributeName
* @param mixed $attributeValue
*/
private function setAttributeWithSanitization(\DOMNode $node, $attributeName, $attributeValue)
protected function setAttributeWithSanitization(\DOMNode $node, $attributeName, $attributeValue)
{
$attributeValue = $this->sanitizeAttributeValueByName($attributeName, $attributeValue);
$this->setAttribute($node, $attributeName, $attributeValue);
Expand All @@ -842,7 +842,7 @@ private function setAttributeWithSanitization(\DOMNode $node, $attributeName, $a
* @param string $attributeName
* @param mixed $attributeValue
*/
private function setAttribute(\DOMNode $node, $attributeName, $attributeValue)
protected function setAttribute(\DOMNode $node, $attributeName, $attributeValue)
{
$attributeNode = $node->ownerDocument->createAttribute($attributeName);
$node->appendChild($attributeNode);
Expand All @@ -858,7 +858,7 @@ private function setAttribute(\DOMNode $node, $attributeName, $attributeValue)
* @return string
* @throws Exception\InvalidArgumentException
*/
private function getSoapNamespaceUriByVersion($soapVersion)
protected function getSoapNamespaceUriByVersion($soapVersion)
{
if ($soapVersion != SOAP_1_1 AND $soapVersion != SOAP_1_2) {
throw new Exception\InvalidArgumentException('Invalid SOAP version, use constants: SOAP_1_1 or SOAP_1_2');
Expand Down

0 comments on commit 951b6e5

Please sign in to comment.