@@ -28,6 +28,8 @@ public function __construct(string $name, OptionsResolver $resolver)
28
28
/**
29
29
* Adds allowed types for this option.
30
30
*
31
+ * @return $this
32
+ *
31
33
* @throws AccessException If called from a lazy option or normalizer
32
34
*/
33
35
public function allowedTypes (string ...$ types ): static
@@ -42,6 +44,8 @@ public function allowedTypes(string ...$types): static
42
44
*
43
45
* @param mixed ...$values One or more acceptable values/closures
44
46
*
47
+ * @return $this
48
+ *
45
49
* @throws AccessException If called from a lazy option or normalizer
46
50
*/
47
51
public function allowedValues (mixed ...$ values ): static
@@ -54,6 +58,8 @@ public function allowedValues(mixed ...$values): static
54
58
/**
55
59
* Sets the default value for this option.
56
60
*
61
+ * @return $this
62
+ *
57
63
* @throws AccessException If called from a lazy option or normalizer
58
64
*/
59
65
public function default (mixed $ value ): static
@@ -77,6 +83,8 @@ public function define(string $option): self
77
83
* @param string $package The name of the composer package that is triggering the deprecation
78
84
* @param string $version The version of the package that introduced the deprecation
79
85
* @param string|\Closure $message The deprecation message to use
86
+ *
87
+ * @return $this
80
88
*/
81
89
public function deprecated (string $ package , string $ version , string |\Closure $ message = 'The option "%name%" is deprecated. ' ): static
82
90
{
@@ -88,6 +96,8 @@ public function deprecated(string $package, string $version, string|\Closure $me
88
96
/**
89
97
* Sets the normalizer for this option.
90
98
*
99
+ * @return $this
100
+ *
91
101
* @throws AccessException If called from a lazy option or normalizer
92
102
*/
93
103
public function normalize (\Closure $ normalizer ): static
@@ -100,6 +110,8 @@ public function normalize(\Closure $normalizer): static
100
110
/**
101
111
* Marks this option as required.
102
112
*
113
+ * @return $this
114
+ *
103
115
* @throws AccessException If called from a lazy option or normalizer
104
116
*/
105
117
public function required (): static
@@ -112,6 +124,8 @@ public function required(): static
112
124
/**
113
125
* Sets an info message for an option.
114
126
*
127
+ * @return $this
128
+ *
115
129
* @throws AccessException If called from a lazy option or normalizer
116
130
*/
117
131
public function info (string $ info ): static
0 commit comments