root/components/codeInstrumentation/CodeInstrumentationClass.class.php
| 59 | 86 | ||
|---|---|---|---|
1 | <?php | 1 | <?php |
2 | /** | 2 | /** |
3 | * CodeInstrumentationClass to create the changed version of the class code | ||
4 | * @package CodeInstrumentation | ||
5 | */ | ||
6 | |||
7 | /** | ||
3 | * Code Instrumentation Class extends a Code Reflection Class | 8 | * Code Instrumentation Class extends a Code Reflection Class |
4 | * to create not a exactly code of the original class but a | 9 | * to create not a exactly code of the original class but a |
5 | * changed version with some code instrumentation messages what | 10 | * changed version with some code instrumentation messages what |
6 | * will be send to the Code Instrumentation Receiver | 11 | * will be send to the Code Instrumentation Receiver |
7 | * | 12 | * |
8 | * @author Thiago Henrique Ramos da Mata <thiago.henrique.mata@gmail.com> | 13 | * @author Thiago Henrique Ramos da Mata <thiago.henrique.mata@gmail.com> |
9 | * @package CodeInstrumentation | ||
10 | */ | 14 | */ |
11 | class CodeInstrumentationClass extends CodeReflectionClass | 15 | class CodeInstrumentationClass extends CodeReflectionClass |
12 | { | 16 | { |
13 | /** | 17 | /** |
14 | * The editable class name | 18 | * The editable class name |
15 | * | ||
16 | * @var string | 19 | * @var string |
17 | */ | 20 | */ |
18 | protected $strName = null; | 21 | protected $strName = null; |
... | ... | ||
38 | /** | 41 | /** |
39 | * Returns the editable class name | 42 | * Returns the editable class name |
40 | * | 43 | * |
41 | * @example | 44 | * @test |
42 | * <code> | 45 | * <code> |
43 | * $this->setClassName( "something" ); | 46 | * $this->setClassName( "something" ); |
44 | * $this->getClassName() == "something" | 47 | * $this->getClassName() == "something" |
45 | * </code> | 48 | * </code> |
49 | * | ||
46 | * @see CodeInstrumentationClass->strName | 50 | * @see CodeInstrumentationClass->strName |
47 | * @see CodeInstrumentationClass::setClassName( string ) | 51 | * @see CodeInstrumentationClass::setClassName( string ) |
48 | * @return string | 52 | * @return string |
... | ... | ||
62 | /** | 66 | /** |
63 | * Set the editable class name | 67 | * Set the editable class name |
64 | * | 68 | * |
65 | * @example | 69 | * @test |
66 | * <code> | 70 | * <pre><code> |
67 | * $this->setClassName( "something" )->getClassName() == "something" | 71 | * $this->setClassName( "something" )->getClassName() == "something" |
68 | * </code> | 72 | * </code></pre> |
73 | * | ||
69 | * @assert( "something" ) | 74 | * @assert( "something" ) |
70 | * | 75 | * |
71 | * @see CodeInstrumentationClass->strName | 76 | * @see CodeInstrumentationClass->strName |
... | ... | ||
177 | { | 182 | { |
178 | return new CodeInstrumentationMethod( $this->getName() , $objOriginalReflectionMethod->getName() ); | 183 | return new CodeInstrumentationMethod( $this->getName() , $objOriginalReflectionMethod->getName() ); |
179 | } | 184 | } |
180 | } | 185 | } |
181 | |||
182 | ?> |
Download diff