forked from laruence/yaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yaf_loader.stub.php
43 lines (30 loc) · 1.03 KB
/
yaf_loader.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/** @generate-legacy-arginfo */
final class Yaf_Loader {
/* constants */
/* properties */
protected string $_local_ns = NULL;
protected string $_library = NULL;
protected string $_global_library = NULL;
static protected Yaf_Loader $_instance = NULL;
/* methods */
private function __construct();
/**
* @return Yaf_Loader
*/
public static function getInstance(string $local_path = NULL, string $global_path = NULL):object;
public static function import(string $file):?bool;
public function autoload(string $class_name):bool;
/**
* @return Yaf_Loader|NULL|FALSE
*/
public function registerLocalNamespace(string|array $name_prefix, string $path = NULL):object|null|false;
public function getLocalNamespace():?array;
public function clearLocalNamespace():?bool;
public function isLocalName(string $class_name):?bool;
/**
* @return Yaf_Loader|NULL
*/
public function setLibraryPath(string $library_path, bool $is_global = false):object|null;
public function getLibraryPath(bool $is_global = false):string;
}