Compare commits

..

1 Commits

Author SHA1 Message Date
Pavel Shevaev 5d5af1ac09 Adding some typehints
Publish PHP Package / docker (push) Successful in 7s Details
2025-04-17 17:47:55 +03:00
1 changed files with 7 additions and 6 deletions

View File

@ -31,12 +31,12 @@ class JSM
$this->args_parser = new JSM_ArgsParser();
}
function getRootFile()
function getRootFile() : string
{
return $this->file;
}
function getModule($file)
static function getModule($file) : JSM_Module
{
if(isset(self::$modules[$file]))
return self::$modules[$file];
@ -683,22 +683,23 @@ class JSM
class JSM_Module
{
var $file = '';
var string $file = '';
var $defs = array();
//NOTE: all includes (even those included from other modules)
var $includes = array();
var $node = null;
function __construct($file)
function __construct(string $file)
{
$this->file = $file;
}
function getIncludes()
function getIncludes() : array
{
return $this->includes;
}
function getFile()
function getFile() : string
{
return $this->file;
}