@@ -34,7 +34,7 @@ public function __construct() {
3434 }
3535
3636 /** Determines the current application env */
37- public function setEnvironment ()
37+ protected function setEnvironment ()
3838 {
3939 if (Config::has ('services.usps.env ' )) {
4040
@@ -49,7 +49,7 @@ public function setEnvironment()
4949 }
5050
5151 /** Determines the api url to use based on running env */
52- public function setUrl ()
52+ protected function setUrl ()
5353 {
5454 $ this ->apiUrl = $ this ->env === 'local ' ? self ::LOCAL_URL : self ::PROD_URL ;
5555 }
@@ -59,7 +59,7 @@ public function setUrl()
5959 *
6060 * @throws Exception If no userid is found in config/services.php
6161 */
62- public function checkForUserId ()
62+ protected function checkForUserId ()
6363 {
6464 if (is_null ($ this ->userId )) {
6565
@@ -94,7 +94,7 @@ protected function convertToXML()
9494 * @param string|null $responseType
9595 * @return mixed depending on $responseType param
9696 */
97- public function makeRequest (string $ responseType = null )
97+ protected function makeRequest (string $ responseType = null )
9898 {
9999 $ this ->checkForUserId ();
100100
@@ -119,7 +119,7 @@ public function makeRequest(string $responseType = null)
119119 * @param string $responseType desired response format ('json', 'object', 'string')
120120 * @return mixed
121121 */
122- public function convertResponse ($ body , $ responseType )
122+ protected function convertResponse ($ body , $ responseType )
123123 {
124124 switch (strtolower ($ responseType )) {
125125 case 'string ' :
@@ -145,7 +145,7 @@ public function convertResponse($body, $responseType)
145145 *
146146 * @return array
147147 */
148- abstract public function getRequestData ();
148+ abstract protected function getRequestData ();
149149
150150 /**
151151 * Alias for makeRequest
0 commit comments