File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
src/Barryvdh/Reflection/DocBlock/Tag Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,35 @@ public function getType()
81
81
return (string ) $ this ->getTypesCollection ();
82
82
}
83
83
84
+ /**
85
+ * Set the type section of the variable
86
+ *
87
+ * @param string $type
88
+ * @return $this
89
+ */
90
+ public function setType ($ type )
91
+ {
92
+ $ this ->type = $ type ;
93
+ $ this ->types = null ;
94
+ $ this ->content = null ;
95
+ return $ this ;
96
+ }
97
+
98
+ /**
99
+ * Add a type to the type section of the variable
100
+ *
101
+ * @param string $type
102
+ * @return $this
103
+ */
104
+ public function addType ($ type )
105
+ {
106
+ $ this ->type = $ this ->type . Collection::OPERATOR_OR . $ type ;
107
+ $ this ->types = null ;
108
+ $ this ->content = null ;
109
+ return $ this ;
110
+ }
111
+
112
+
84
113
/**
85
114
* Returns the type collection.
86
115
*
You can’t perform that action at this time.
0 commit comments