Skip to content

Commit c640527

Browse files
committed
Add getters for wordIndex and characterIndex
1 parent 099fda5 commit c640527

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/Stecman/Component/Symfony/Console/BashCompletion/CompletionHandler.php

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,14 @@ public function setWords($words)
426426
$this->words = $words;
427427
}
428428

429+
/**
430+
* @return string
431+
*/
432+
public function getWordIndex()
433+
{
434+
return $this->wordIndex;
435+
}
436+
429437
/**
430438
* @param string $wordIndex
431439
*/
@@ -437,9 +445,9 @@ public function setWordIndex($wordIndex)
437445
/**
438446
* @return string
439447
*/
440-
public function getCommandLine()
448+
public function getCharIndex()
441449
{
442-
return $this->commandLine;
450+
return $this->charIndex;
443451
}
444452

445453
/**
@@ -450,6 +458,14 @@ public function setCommandLine($commandLine)
450458
$this->commandLine = $commandLine;
451459
}
452460

461+
/**
462+
* @return string
463+
*/
464+
public function getCommandLine()
465+
{
466+
return $this->commandLine;
467+
}
468+
453469
/**
454470
* @param string $charIndex
455471
*/

0 commit comments

Comments
 (0)