eb7b3ccc60be2c514152d7b69c34da2fde203675
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / phpparser / PHPClassDeclaration.java
1 package net.sourceforge.phpeclipse.phpeditor.phpparser;
2
3 import net.sourceforge.phpdt.internal.ui.PHPUiImages;
4 import org.eclipse.jface.resource.ImageDescriptor;
5 /**
6  * A class declaration.
7  * @author khartlage
8  */
9 public class PHPClassDeclaration extends PHPSegmentWithChildren {
10
11   /**
12    * Create a class declaration.
13    * @param parent the parent object (it should be a php class)
14    * @param name the name of the class
15    * @param index where the class is in the file
16    */
17   public PHPClassDeclaration(Object parent, String name, int index) {
18     super(parent, name, index);
19   }
20
21   /**
22    * Get the image of a class.
23    * @return the image that represents a php class
24    */
25   public ImageDescriptor getImage() {
26     return PHPUiImages.DESC_CLASS;
27   }
28 }