Browse Source

Rename methods to make room for named positional arguments.

Rename methods to use 'At' suffix to indicate a positional index. New
methods will be added that can read/check positional arguments by
'name'.
mark_story 8 years ago
parent
commit
cddb3b58c5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Console/Arguments.php

+ 2 - 2
src/Console/Arguments.php

@@ -62,7 +62,7 @@ class Arguments
      * @param int $index The argument index to access.
      * @return string|null The argument value or null
      */
-    public function getArgument($index)
+    public function getArgumentAt($index)
     {
         if (isset($this->args[$index])) {
             return $this->args[$index];
@@ -77,7 +77,7 @@ class Arguments
      * @param int $index The argument index to check.
      * @return bool
      */
-    public function hasArgument($index)
+    public function hasArgumentAt($index)
     {
         return isset($this->args[$index]);
     }