Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • ClassType
  • Closure
  • Constant
  • Factory
  • GlobalFunction
  • Helpers
  • Method
  • Parameter
  • PhpFile
  • PhpLiteral
  • PhpNamespace
  • Property
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
 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\PhpGenerator;
 9: 
10: use Nette;
11: 
12: 
13: /**
14:  * Class constant.
15:  */
16: class Constant
17: {
18:     use Nette\SmartObject;
19:     use Traits\NameAware;
20:     use Traits\VisibilityAware;
21:     use Traits\CommentAware;
22: 
23:     /** @var mixed */
24:     private $value;
25: 
26: 
27:     /**
28:      * @return static
29:      */
30:     public function setValue($val)
31:     {
32:         $this->value = $val;
33:         return $this;
34:     }
35: 
36: 
37:     /**
38:      * @return mixed
39:      */
40:     public function getValue()
41:     {
42:         return $this->value;
43:     }
44: }
45: 
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0