Skip to content

Commit 32ac43e

Browse files
committed
up
1 parent b23edf4 commit 32ac43e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/App.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use function array_merge;
1515
use function array_shift;
1616
use function array_values;
17+
use function basename;
1718
use function class_exists;
1819
use function function_exists;
1920
use function getcwd;
@@ -548,6 +549,14 @@ public function getScript(): string
548549
return $this->script;
549550
}
550551

552+
/**
553+
* @return string
554+
*/
555+
public function getScriptName(): string
556+
{
557+
return basename($this->script);
558+
}
559+
551560
/**
552561
* @param string $script
553562
*/

0 commit comments

Comments
 (0)