10000 Relocated public static function · kler/getopt-php@5944dc4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5944dc4

Browse files
committed
Relocated public static function
1 parent 96c879a commit 5944dc4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Ulrichsg/Getopt/Option.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,6 @@ public function setArgument(Argument $arg)
8484
$this->argument = $arg;
8585
return $this;
8686
}
87-
88-
/**
89-
* Fluent interface for constructor so options can be added during construction
90-
* @see Options::__construct()
91-
*/
92-
public static function create($short, $long, $mode = Getopt::NO_ARGUMENT)
93-
{
94-
return new self($short, $long, $mode);
95-
}
9687

9788
/**
9889
* Returns true if the given string is equal to either the short or the long name.
@@ -134,6 +125,15 @@ public function getArgument()
134125
{
135126
return $this->argument;
136127
}
128+
129+
/**
130+
* Fluent interface for constructor so options can be added during construction
131+
* @see Options::__construct()
132+
*/
133+
public static function create($short, $long, $mode = Getopt::NO_ARGUMENT)
134+
{
135+
return new self($short, $long, $mode);
136+
}
137137

138138
private function setShort($short)
139139
{

0 commit comments

Comments
 (0)
0