| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 28 | public function __construct($object, $method){ |
||
| 29 | $this->annotations = array(); |
||
| 30 | |||
| 31 | $reflection = new \ReflectionMethod($object, $method); |
||
| 32 | $docs = $reflection->getDocComment(); |
||
| 33 | |||
| 34 | // extract everythin prefixed by @ and first letter uppercase |
||
| 35 | preg_match_all('/@([A-Z]\w+)/', $docs, $matches); |
||
| 36 | $this->annotations = $matches[1]; |
||
| 37 | } |
||
| 38 | |||
| 50 | } |