POA)) { $this->setPOA(new POA($attributes->POA)); } } } /** * @param null|DOMDocument $document * * @return DOMElement */ public function toNode(DOMDocument $document = null) { if (null === $document) { $document = new DOMDocument(); } $node = $document->createElement('UPSFiled'); $poa = $this->getPOA(); if (isset($poa)) { $node->appendChild($poa->toNode($document)); } return $node; } /** * @return POA */ public function getPOA() { return $this->poa; } /** * @return string */ public function setPOA(POA $poa) { $this->poa = $poa; return $this; } }