getScriptName() public method

Returns the PHP script as it was called on the console.
public getScriptName ( ) : string | null
return string | null The script name or null if no script name is available.
Example #1
0
 /**
  * Returns the PHP script as it was called on the console.
  *
  * @return string|null The script name or null if no script name is
  *                     available.
  */
 public function getScriptName()
 {
     return $this->rawArgs ? $this->rawArgs->getScriptName() : null;
 }