 <?php

namespace WsdlToPhp\DomHandler;

class NameSpaceHandler extends AttributeHandler
{
    /**
     * @var \DOMNameSpaceNode
     */
    protected $nodeNameSpace;
    /**
     * @param \DOMNameSpaceNode $nameSpaceNode
     * @param AbstractDomDocumentHandler $domDocumentHandler
     * @param int $index
     */
    public function __construct(\DOMNameSpaceNode $nameSpaceNode, AbstractDomDocumentHandler $domDocumentHandler, $index = -1)
    {
        parent::__construct(new \DOMAttr($nameSpaceNode->nodeName, $nameSpaceNode->nodeValue), $domDocumentHandler, $index);
        $this->nodeNameSpace = $nameSpaceNode;
    }
    /**
     * value is always with [http|https]:// so we need to keep the full value
     * @param bool $withNamespace
     * @param bool $withinItsType
     * @param string $asType
     * @return mixed
     */
    public function getValue($withNamespace = false, $withinItsType = true, $asType = null)
    {
        return parent::getValue(true, $withinItsType, $asType);
    }
    /**
     * @return null|string
     */
    public function getValueNamespace()
    {
        return null;
    }
}

<?php

namespace WsdlToPhp\DomHandler;

class NameSpaceHandler extends AttributeHandler
{
    /**
     * @var \DOMNameSpaceNode
     */
    private $nodeNameSpace;
    /**
     * @param \DOMNameSpaceNode $nameSpaceNode
     * @param AbstractDomDocumentHandler $domDocumentHandler
     * @param int $index
     */
    public function __construct(\DOMNameSpaceNode $nameSpaceNode, AbstractDomDocumentHandler $domDocumentHandler, $index = -1)
    {
        parent::__construct(new \DOMAttr($nameSpaceNode->nodeName, $nameSpaceNode->nodeValue), $domDocumentHandler, $index);
        $this->nodeNameSpace = $nameSpaceNode;
    }
    /**
     * value is always with [http|https]:// so we need to keep the full value
     * @param bool $withNamespace
     * @param bool $withinItsType
     * @param string $asType
     * @return mixed
     */
    public function getValue($withNamespace = false, $withinItsType = true, $asType = null)
    {
        return parent::getValue(true, $withinItsType, $asType);
    }
    /**
     * @return null|string
     */
    public function getValueNamespace()
    {
        return null;
    }
}

Revert "make the property protected instead of private"
Revert "make the property protected instead of private"

This reverts commit 409669ec1686f71ae3804003540423e45d842f2e.
