public function getNotAfter() { $xpath = $this->xPath(); $result = $xpath->query('/tmNotice:notice/tmNotice:notAfter'); if (is_object($result) && $result->length > 0) { return trim($result->item(0)->nodeValue); } return null; }