1 | <?php |
||
21 | class TypeResolver |
||
22 | { |
||
23 | /** |
||
24 | * Path to the types config file |
||
25 | * @var string |
||
26 | */ |
||
27 | public $path = '@vendor/opus-online/yii2-elastic/src/config/types'; |
||
28 | |||
29 | /** |
||
30 | * Cached configuration |
||
31 | * @var array |
||
32 | */ |
||
33 | private $config = []; |
||
34 | |||
35 | /** |
||
36 | * Loads configuration |
||
37 | */ |
||
38 | function __construct() |
||
44 | |||
45 | /** |
||
46 | * @param $type |
||
47 | * @throws \yii\base\ErrorException |
||
48 | * @return |
||
49 | */ |
||
50 | public function resolve($type) |
||
57 | } |
||
58 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.