root/trunk/src/main/php/net/stubbles/xml/serializer/annotations/stubXMLStrategyAnnotation.php

Revision 1296, 1.2 kB (checked in by richi, 4 months ago)

fixed coding standard issues (var docblock)

Line 
1 <?php
2 /**
3  * Annotation for XMLSerializer
4  *
5  * @author      Stephan Schmidt <schst@stubbles.net>
6  * @package     stubbles
7  * @subpackage  xml_serializer_annotations
8  */
9 stubClassLoader::load('net::stubbles::reflection::annotations::stubAnnotation',
10                       'net::stubbles::reflection::annotations::stubAbstractAnnotation'
11 );
12 /**
13  * Annotation for XMLSerializer
14  *
15  * Use this annotation, if you do not want a property to be serialized.
16  *
17  * @package     stubbles
18  * @subpackage  xml_serializer_annotations
19  */
20 class stubXMLStrategyAnnotation extends stubAbstractAnnotation implements stubAnnotation
21 {
22     /**
23      * The strategy to use for this class
24      *
25      * @var  int
26      */
27     protected $value;
28
29     /**
30      * Set the value of the annotation
31      *
32      * @param  int  $value
33      */
34     public function setValue($value)
35     {
36         $this->value = $value;
37     }
38
39     /**
40      * Get the value of the annotation
41      *
42      * @return  int
43      */
44     public function getValue()
45     {
46         return $this->value;
47     }
48
49     /**
50      * Returns the target of the annotation as bitmap.
51      *
52      * @return  int
53      */
54     public function getAnnotationTarget()
55     {
56         return stubAnnotation::TARGET_CLASS;
57     }
58 }
59 ?>
Note: See TracBrowser for help on using the browser.