public getVersions ( ) : array | ||
Результат | array | of strings |
public function getVersions()
{
$xpath = $this->xPath();
$versions = $xpath->query('/epp:epp/epp:greeting/epp:svcMenu/epp:version');
$vers = [];
foreach ($versions as $version) {
$vers[] = $version->nodeValue;
}
return $vers;
}