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