Java Code Examples for com.jetbrains.php.lang.psi.elements.PhpClass#getProject()

The following examples show how to use com.jetbrains.php.lang.psi.elements.PhpClass#getProject() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ServiceIndexUtil.java    From idea-php-symfony2-plugin with MIT License 5 votes vote down vote up
@Nullable
public static ClassServiceDefinitionTargetLazyValue findServiceDefinitionsLazy(@Nullable PhpClass phpClass) {
    if(phpClass == null) {
        return null;
    }

    String phpClassName = phpClass.getPresentableFQN();
    Set<String> serviceNames = ContainerCollectionResolver.ServiceCollector.create(phpClass.getProject()).convertClassNameToServices(phpClassName);
    if(serviceNames.size() == 0) {
        return null;
    }

    return new ClassServiceDefinitionTargetLazyValue(phpClass.getProject(), phpClassName);
}
 
Example 2
Source File: AnnotationPropertyParameter.java    From idea-php-annotation-plugin with MIT License 4 votes vote down vote up
public AnnotationPropertyParameter(@NotNull PsiElement psiElement, @NotNull PhpClass phpClass, @NotNull Type type) {
    this.element = psiElement;
    this.phpClass = phpClass;
    this.type = type;
    this.project = phpClass.getProject();
}