11<?php 
2- /** 
3-  * Created by PhpStorm. 
4-  * User: nts 
5-  * Date: 31.3.18. 
6-  * Time: 15.12 
7-  */ 
82
93namespace  KgBot \Magento ;
104
5+ use  KgBot \Magento \Builders \CustomerAddressBuilder ;
116use  KgBot \Magento \Builders \CustomerBuilder ;
127use  KgBot \Magento \Builders \CustomerGroupBuilder ;
138use  KgBot \Magento \Builders \OrderBuilder ;
1611
1712class  Magento
1813{
19-      /** 
20-       * @var $request Request
21-       */
22-      protected  $ request
14+ 	 /** 
15+ 	  * @var $request Request
16+ 	  */
17+ 	 protected  $ request
2318
24-     /** 
25-      * Rackbeat constructor. 
26-      * 
27-      * @param null  $token   API token 
28-      * @param array $options Custom Guzzle options 
29-      * @param array $headers Custom Guzzle headers 
30-      */ 
31-     public  function  __construct ( $ tokennull , $ options$ headers
32-     {
33-         $ this initRequest ( $ token$ options$ headers
34-     }
19+ 	/** 
20+ 	 * Rackbeat constructor. 
21+ 	 * 
22+ 	 * @param null  $token   API token 
23+ 	 * @param array $options Custom Guzzle options 
24+ 	 * @param array $headers Custom Guzzle headers 
25+ 	 */ 
26+ 	public  function  __construct ( $ tokennull , $ options$ headers
27+ 		$ this initRequest ( $ token$ options$ headers
28+ 	}
3529
36-     /** 
37-      * @param       $token 
38-      * @param array $options 
39-      * @param array $headers 
40-      */ 
41-     private  function  initRequest ( $ token$ options$ headers
42-     {
43-         $ this request  = new  Request ( $ token$ options$ headers
44-     }
30+ 	/** 
31+ 	 * @param       $token 
32+ 	 * @param array $options 
33+ 	 * @param array $headers 
34+ 	 */ 
35+ 	private  function  initRequest ( $ token$ options$ headersvoid  {
36+ 		$ this request  = new  Request ( $ token$ options$ headers
37+ 	}
4538
46-     /** 
47-      * @return \KgBot\Magento\Builders\OrderBuilder 
48-      */ 
49-     public  function  orders ()
50-     {
51-         return  new  OrderBuilder ( $ this request  );
52-     }
39+ 	/** 
40+ 	 * @return OrderBuilder 
41+ 	 */ 
42+ 	public  function  orders (): OrderBuilder 
43+ 		return  new  OrderBuilder ( $ this request  );
44+ 	}
5345
54-     /** 
55-      * @return \KgBot\Magento\Builders\CustomerBuilder 
56-      */ 
57-     public  function  customers ()
58-     {
59-         return  new  CustomerBuilder ( $ this request  );
60-     }
46+ 	/** 
47+ 	 * @return CustomerBuilder 
48+ 	 */ 
49+ 	public  function  customers (): CustomerBuilder 
50+ 		return  new  CustomerBuilder ( $ this request  );
51+ 	}
6152
62-     /** 
63-      * @return \KgBot\Magento\Builders\ProductBuilder 
64-      */ 
65-     public  function  products ()
66-     {
67-         return  new  ProductBuilder ( $ this request  );
68-     }
53+ 	/** 
54+ 	 * @return CustomerAddressBuilder 
55+ 	 */ 
56+ 	public  function  customer_addresses (): CustomerAddressBuilder 
57+ 		return  new  CustomerAddressBuilder ( $ this request  );
58+ 	}
6959
70-     /** 
71-      * @return \KgBot\Magento\Builders\CustomerGroupBuilder 
72-      */ 
73-     public  function  customer_groups ()
74-     {
60+ 	/** 
61+ 	 * @return ProductBuilder 
62+ 	 */ 
63+ 	public  function  products (): ProductBuilder 
64+ 		return  new  ProductBuilder ( $ this request  );
65+ 	}
7566
76-         return  new  CustomerGroupBuilder ( $ this request  );
77-     }
67+ 	/** 
68+ 	 * @return CustomerGroupBuilder 
69+ 	 */ 
70+ 	public  function  customer_groups (): CustomerGroupBuilder 
71+ 
72+ 		return  new  CustomerGroupBuilder ( $ this request  );
73+ 	}
7874}
0 commit comments