1 package net.sourceforge.phpeclipse.phpeditor.phpparser;
3 import net.sourceforge.phpdt.internal.ui.PHPUiImages;
5 import org.eclipse.jface.resource.ImageDescriptor;
8 * A function declaration.
11 public class PHPFunctionDeclaration extends PHPSegmentWithChildren {
14 * Create a function declaration.
15 * @param parent the parent object (it should be a php class)
16 * @param name the name of the function
17 * @param index where the function is in the file
19 public PHPFunctionDeclaration(Object parent, String name, int index) {
20 super(parent, name, index);
24 * Get the image of a class.
25 * @return the image that represents a php class
27 public ImageDescriptor getImage() {
28 return PHPUiImages.DESC_FUN;