@@ -57,18 +57,13 @@ class DefinitionParameter implements \JsonSerializable {
5757 /** @var int flags, see self::FLAG_* constants */
5858 private $ flags = self ::FLAG_NONE ;
5959
60- /** @var mixed */
61- private $ defaultValue ;
62-
6360 /**
64- * @param string $name parameter name
65- * @param string $text parameter description
66- * @param mixed $defaultValue default value
61+ * @param string $name
62+ * @param string $text
6763 */
68- public function __construct ($ name , $ text, $ defaultValue = null ) {
64+ public function __construct ($ name , $ text ) {
6965 $ this ->name = $ name ;
7066 $ this ->text = $ text ;
71- $ this ->defaultValue = $ defaultValue ;
7267 }
7368
7469 /**
@@ -105,22 +100,6 @@ public function setType($type) {
105100 return $ this ;
106101 }
107102
108- /**
109- * @return mixed default value
110- */
111- public function getDefaultValue () {
112- return $ this ->defaultValue ;
113- }
114-
115- /**
116- * @param mixed $defaultValue default value
117- * @return self
118- */
119- public function setDefaultValue ($ defaultValue ) {
120- $ this ->defaultValue = $ defaultValue ;
121- return $ this ;
122- }
123-
124103 /**
125104 * @return string
126105 */
@@ -192,17 +171,12 @@ public function setTooltip(string $tooltip) {
192171 * @return string
193172 */
194173 public function jsonSerialize () {
195- $ result = [
174+ return [
196175 'value ' => $ this ->getText (),
197176 'flags ' => $ this ->getFlags (),
198177 'type ' => $ this ->getType (),
199178 'tooltip ' => $ this ->getTooltip (),
200179 ];
201- $ defaultValue = $ this ->getDefaultValue ();
202- if ($ defaultValue ) {
203- $ result ['defaultValue ' ] = $ defaultValue ;
204- }
205- return $ result ;
206180 }
207181
208182 public function isOptional () {
0 commit comments