TYPO3 CMS  TYPO3_7-6
ArgumentDefinition.php
Go to the documentation of this file.
1 <?php
3 
4 /* *
5  * This script is backported from the TYPO3 Flow package "TYPO3.Fluid". *
6  * *
7  * It is free software; you can redistribute it and/or modify it under *
8  * the terms of the GNU Lesser General Public License, either version 3 *
9  * of the License, or (at your option) any later version. *
10  * *
11  * The TYPO3 project - inspiring people to share! *
12  * */
13 
18 {
24  protected $name;
25 
31  protected $type;
32 
38  protected $description;
39 
45  protected $required = false;
46 
52  protected $defaultValue = null;
53 
59  protected $isMethodParameter = false;
60 
72  {
73  $this->name = $name;
74  $this->type = $type;
75  $this->description = $description;
76  $this->required = $required;
77  $this->defaultValue = $defaultValue;
79  }
80 
86  public function getName()
87  {
88  return $this->name;
89  }
90 
96  public function getType()
97  {
98  return $this->type;
99  }
100 
106  public function getDescription()
107  {
108  return $this->description;
109  }
110 
116  public function isRequired()
117  {
118  return $this->required;
119  }
120 
126  public function getDefaultValue()
127  {
128  return $this->defaultValue;
129  }
130 
136  public function isMethodParameter()
137  {
139  }
140 }
__construct($name, $type, $description, $required, $defaultValue=null, $isMethodParameter=false)