package fr.adrienbrault.idea.symfony2plugin.dic.container.visitor;
import com.intellij.psi.PsiElement;
import fr.adrienbrault.idea.symfony2plugin.dic.attribute.value.AttributeValueInterface;
import org.jetbrains.annotations.NotNull;
/**
* @author Daniel Espendiller <daniel@espendiller.net>
*/
public class ServiceConsumer {
@NotNull
private final PsiElement psiElement;
@NotNull
private final String serviceId;
@NotNull
private final AttributeValueInterface attributeValue;
public ServiceConsumer(@NotNull PsiElement psiElement, @NotNull String serviceId, @NotNull AttributeValueInterface attributeValue) {
this.psiElement = psiElement;
this.serviceId = serviceId;
this.attributeValue = attributeValue;
}
@NotNull
public String getServiceId() {
return serviceId;
}
@NotNull
public AttributeValueInterface attributes() {
return attributeValue;
}
@NotNull
public PsiElement getPsiElement() {
return psiElement;
}
}