Skip to content

Commit 258ea46

Browse files
committed
Update interface
1 parent d72f509 commit 258ea46

File tree

2 files changed

+67
-29
lines changed

2 files changed

+67
-29
lines changed

src/PhpGitHooks/Infrastructure/Component/InMemoryInputInterface.php

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,35 +23,6 @@ public function getFirstArgument()
2323
return $this->firstArgument;
2424
}
2525

26-
/**
27-
* Returns true if the raw parameters (not parsed) contain a value.
28-
*
29-
* This method is to be used to introspect the input parameters
30-
* before they have been validated. It must be used carefully.
31-
*
32-
* @param string|array $values The values to look for in the raw parameters (can be an array)
33-
*
34-
* @return bool true if the value is contained in the raw parameters
35-
*/
36-
public function hasParameterOption($values)
37-
{
38-
}
39-
40-
/**
41-
* Returns the value of a raw option (not parsed).
42-
*
43-
* This method is to be used to introspect the input parameters
44-
* before they have been validated. It must be used carefully.
45-
*
46-
* @param string|array $values The value(s) to look for in the raw parameters (can be an array)
47-
* @param mixed $default The default value to return if no result is found
48-
*
49-
* @return mixed The option value
50-
*/
51-
public function getParameterOption($values, $default = false)
52-
{
53-
}
54-
5526
/**
5627
* Binds the current Input instance with the given arguments and options.
5728
*
@@ -183,4 +154,35 @@ public function setFirstArgument($firstArgument)
183154
{
184155
$this->firstArgument = $firstArgument;
185156
}
157+
158+
/**
159+
* Returns true if the raw parameters (not parsed) contain a value.
160+
*
161+
* This method is to be used to introspect the input parameters
162+
* before they have been validated. It must be used carefully.
163+
*
164+
* @param string|array $values The values to look for in the raw parameters (can be an array)
165+
* @param bool $onlyParams Only check real parameters, skip those following an end of options (--) signal
166+
*
167+
* @return bool true if the value is contained in the raw parameters
168+
*/
169+
public function hasParameterOption($values, $onlyParams = false)
170+
{
171+
}
172+
173+
/**
174+
* Returns the value of a raw option (not parsed).
175+
*
176+
* This method is to be used to introspect the input parameters
177+
* before they have been validated. It must be used carefully.
178+
*
179+
* @param string|array $values The value(s) to look for in the raw parameters (can be an array)
180+
* @param mixed $default The default value to return if no result is found
181+
* @param bool $onlyParams Only check real parameters, skip those following an end of options (--) signal
182+
*
183+
* @return mixed The option value
184+
*/
185+
public function getParameterOption($values, $default = false, $onlyParams = false)
186+
{
187+
}
186188
}

src/PhpGitHooks/Infrastructure/Component/InMemoryOutputInterface.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,40 @@ public function setFormatter(OutputFormatterInterface $formatter)
101101
public function getFormatter()
102102
{
103103
}
104+
105+
/**
106+
* Returns whether verbosity is quiet (-q).
107+
*
108+
* @return bool true if verbosity is set to VERBOSITY_QUIET, false otherwise
109+
*/
110+
public function isQuiet()
111+
{
112+
}
113+
114+
/**
115+
* Returns whether verbosity is verbose (-v).
116+
*
117+
* @return bool true if verbosity is set to VERBOSITY_VERBOSE, false otherwise
118+
*/
119+
public function isVerbose()
120+
{
121+
}
122+
123+
/**
124+
* Returns whether verbosity is very verbose (-vv).
125+
*
126+
* @return bool true if verbosity is set to VERBOSITY_VERY_VERBOSE, false otherwise
127+
*/
128+
public function isVeryVerbose()
129+
{
130+
}
131+
132+
/**
133+
* Returns whether verbosity is debug (-vvv).
134+
*
135+
* @return bool true if verbosity is set to VERBOSITY_DEBUG, false otherwise
136+
*/
137+
public function isDebug()
138+
{
139+
}
104140
}

0 commit comments

Comments
 (0)