public function getVersion()
{
if ($this->version === null) {
if (preg_match('/^.*\\$Revision: ([\\d\\.]+)/m', $this->getContent('Revision:'), $match)) {
$this->version = $match[1];
} else {
throw new \RuntimeException('Unable to detect revision ID.');
}
}
return $this->version;
}