@@ -32,44 +32,17 @@ final class ApiSnmpClient implements SnmpClient
3232{
3333 private const API_PATH = '/snmp-proxy ' ;
3434
35- private ClientInterface $ client ;
36-
37- private RequestFactoryInterface $ requestFactory ;
38-
39- private StreamFactoryInterface $ streamFactory ;
40-
41- private string $ apiHostUrl ;
42-
43- private string $ host ;
44-
45- private string $ community ;
46-
47- private int $ timeout ;
48-
49- private int $ retries ;
50-
51- private string $ version ;
52-
5335 public function __construct (
54- ClientInterface $ client ,
55- RequestFactoryInterface $ requestFactory ,
56- StreamFactoryInterface $ streamFactory ,
57- string $ apiHostUrl ,
58- string $ host = '127.0.0.1 ' ,
59- string $ community = 'public ' ,
60- int $ timeout = 1 ,
61- int $ retries = 3 ,
62- string $ version = '2c '
36+ private ClientInterface $ client ,
37+ private RequestFactoryInterface $ requestFactory ,
38+ private StreamFactoryInterface $ streamFactory ,
39+ private string $ apiHostUrl ,
40+ private string $ host = '127.0.0.1 ' ,
41+ private string $ community = 'public ' ,
42+ private int $ timeout = 1 ,
43+ private int $ retries = 3 ,
44+ private string $ version = '2c ' ,
6345 ) {
64- $ this ->client = $ client ;
65- $ this ->requestFactory = $ requestFactory ;
66- $ this ->streamFactory = $ streamFactory ;
67- $ this ->apiHostUrl = $ apiHostUrl ;
68- $ this ->host = $ host ;
69- $ this ->community = $ community ;
70- $ this ->timeout = $ timeout ;
71- $ this ->retries = $ retries ;
72- $ this ->version = $ version ;
7346 }
7447
7548 /** @inheritDoc */
0 commit comments