$this->interrupted = true;
}
- public function run(InputInterface $input, OutputInterface $output) {
+ public function run(InputInterface $input, OutputInterface $output): int {
// check if the php pcntl_signal functions are accessible
$this->php_pcntl_signal = function_exists('pcntl_signal');
if ($this->php_pcntl_signal) {
*
* @return bool true if the output will decorate messages, false otherwise
*/
- public function isDecorated() {
+ public function isDecorated(): bool {
return $this->formatter->isDecorated();
}
* @param string $name
* @return bool
*/
- public function hasStyle($name) {
+ public function hasStyle($name): bool {
return $this->formatter->hasStyle($name);
}
* @return OutputFormatterStyleInterface
* @throws \InvalidArgumentException When style isn't defined
*/
- public function getStyle($name) {
+ public function getStyle($name): OutputFormatterStyleInterface {
return $this->formatter->getStyle($name);
}