Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

Interfaces

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (https://nette.org)
 5:  * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
 6:  * @package Nette\Reflection
 7:  */
 8: 
 9: 
10: 
11: /**
12:  * Basic annotation implementation.
13:  *
14:  * @author     David Grudl
15:  * @package Nette\Reflection
16:  */
17: class NAnnotation extends NObject implements IAnnotation
18: {
19: 
20:     public function __construct(array $values)
21:     {
22:         foreach ($values as $k => $v) {
23:             $this->$k = $v;
24:         }
25:     }
26: 
27: 
28:     /**
29:      * Returns default annotation.
30:      * @return string
31:      */
32:     public function __toString()
33:     {
34:         return $this->value;
35:     }
36: 
37: }
38: 
Nette Framework 2.0.18 (for PHP 5.2, prefixed) API documentation generated by ApiGen 2.8.0