getVersion()); } if (!defined('TYPO3_branch')) { define('TYPO3_branch', $this->getBranch()); } } public function getVersion(): string { return static::VERSION; } public function getBranch(): string { return static::BRANCH; } /** * Get 'major version' of version, e.g., '7' from '7.3.0' * * @return int Major version, e.g., '7' */ public function getMajorVersion(): int { [$explodedVersion] = explode('.', static::VERSION); return (int)$explodedVersion; } public function __toString(): string { return $this->getVersion(); } }