use of com.jetbrains.php.lang.psi.elements.Constant in project idea-php-typo3-plugin by cedricziel.
the class TYPO3Utility method getTYPO3Version.
@Nullable
public static String getTYPO3Version(@NotNull Project project) {
Constant versionConstant = getVersionConstant(project);
if (versionConstant == null) {
return null;
}
PsiElement value = versionConstant.getValue();
if (value instanceof StringLiteralExpression) {
return ((StringLiteralExpression) value).getContents();
}
return null;
}
use of com.jetbrains.php.lang.psi.elements.Constant in project idea-php-typo3-plugin by cedricziel.
the class TYPO3Utility method getTYPO3Branch.
@Nullable
public static String getTYPO3Branch(@NotNull Project project) {
Constant versionConstant = getBranchVersionConstant(project);
if (versionConstant == null) {
return null;
}
PsiElement value = versionConstant.getValue();
if (value instanceof StringLiteralExpression) {
return ((StringLiteralExpression) value).getContents();
}
return null;
}
Aggregations