package net.sourceforge.phpdt.internal.compiler.parser; import net.sourceforge.phpdt.internal.ui.PHPUiImages; import org.eclipse.jface.resource.ImageDescriptor; /** * A class declaration. * @author khartlage */ public class PHPClassDeclaration extends PHPSegmentWithChildren { /** * Create a class declaration. * @param parent the parent object (it should be a php class) * @param name the name of the class * @param index where the class is in the file */ public PHPClassDeclaration(Object parent, String name, int index) { super(parent, name, index); } /** * Get the image of a class. * @return the image that represents a php class */ public ImageDescriptor getImage() { return PHPUiImages.DESC_CLASS; } }