1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6: */
7:
8: namespace Nette\Reflection;
9:
10: use Nette;
11:
12:
13: /**
14: * Basic annotation implementation.
15: *
16: * @author David Grudl
17: */
18: class Annotation extends Nette\Object implements IAnnotation
19: {
20:
21: public function __construct(array $values)
22: {
23: foreach ($values as $k => $v) {
24: $this->$k = $v;
25: }
26: }
27:
28:
29: /**
30: * Returns default annotation.
31: * @return string
32: */
33: public function __toString()
34: {
35: return $this->value;
36: }
37:
38: }
39: