File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace MagDv \Sbis ;
6
6
7
+ use MagDv \Sbis \Interfaces \AuthApiInterface ;
7
8
use MagDv \Sbis \Interfaces \ClientConfigInterface ;
9
+ use MagDv \Sbis \Interfaces \ContractorApiInterface ;
10
+ use MagDv \Sbis \Interfaces \DocumentApiInterface ;
8
11
9
12
class SbisFactory
10
13
{
@@ -16,23 +19,23 @@ public function __construct(ClientConfigInterface $clientConfig)
16
19
$ this ->clientConfig = $ clientConfig ;
17
20
}
18
21
19
- public function getAuth (): AuthApi
22
+ public function getAuth (): AuthApiInterface
20
23
{
21
24
$ auth = new AuthApi ($ this ->clientConfig );
22
25
$ auth ->setSessionId ($ this ->sessionId );
23
26
24
27
return $ auth ;
25
28
}
26
29
27
- public function getContractor (): ContractorApi
30
+ public function getContractor (): ContractorApiInterface
28
31
{
29
32
$ contractor = new ContractorApi ($ this ->clientConfig );
30
33
$ contractor ->setSessionId ($ this ->sessionId );
31
34
32
35
return $ contractor ;
33
36
}
34
37
35
- public function getDocument (): DocumentApi
38
+ public function getDocument (): DocumentApiInterface
36
39
{
37
40
$ documentApi = new DocumentApi ($ this ->clientConfig );
38
41
$ documentApi ->setSessionId ($ this ->sessionId );
You can’t perform that action at this time.
0 commit comments