public function toNode(DOMDocument $document = null)
    {
        if (null === $document) {
            $document = new DOMDocument();
        }

        $node = $document->createElement('AccessPointSearch');

        if ($this->getAccessPointStatus()) {
            $node->appendChild($document->createElement('AccessPointStatus', $this->getAccessPointStatus()));
        }

        if ($this->getPublicAccessPointId()) {
            $node->appendChild($document->createElement('PublicAccessPointID', $this->getPublicAccessPointId()));
        }

        if ($this->getAccountNumber()) {
            $node->appendChild($document->createElement('AccountNumber', $this->getAccountNumber()));
        }

        return $node;
    }
public function toNode(DOMDocument $document = null)
    {
        if (null === $document) {
            $document = new DOMDocument();
        }

        $node = $document->createElement('AccessPointSearch');

        if ($this->getAccessPointStatus()) {
            $node->appendChild($document->createElement('AccessPointStatus', $this->getAccessPointStatus()));
        }

        if ($this->getPublicAccessPointId()) {
            $node->appendChild($document->createElement('PublicAccessPointID', $this->getPublicAccessPointId()));
        }

        if ($this->getAccountNumber()) {
            $node->appendChild($document->createElement('AccountNumber', $this->getAccountNumber()));
        }

        return $node;
    }
@param null|DOMDocument $document

@return DOMElement