Loading src/Service/Interfaces/Order/ShopifyServiceInterface.php 0 → 100644 +17 −0 Original line number Diff line number Diff line <?php /** * Created by PhpStorm. * User: 姜克保 * Date: 2020/5/20 * Time: 15:48 */ namespace Meibuyu\Micro\Service\Interfaces\Order; use phpDocumentor\Reflection\Types\Void_; interface ShopifyServiceInterface { public function pushOrder($topic, $json); } src/functions.php +23 −0 Original line number Diff line number Diff line Loading @@ -719,6 +719,29 @@ if (!function_exists('check_diff_val')) { } } if (!function_exists('to_camel_case')) { /** * 下划线命名转驼峰命名 * 例:demo_function : demoFunction * @param $dirSep 分隔符 * @param $str * @return mixed|string */ function to_camel_case($dirSep, $str) { $array = explode($dirSep, $str); $result = $array[0]; $len=count($array); if($len>1) { for($i=1;$i<$len;$i++) { $result.= ucfirst($array[$i]); } } return $result; } } Loading
src/Service/Interfaces/Order/ShopifyServiceInterface.php 0 → 100644 +17 −0 Original line number Diff line number Diff line <?php /** * Created by PhpStorm. * User: 姜克保 * Date: 2020/5/20 * Time: 15:48 */ namespace Meibuyu\Micro\Service\Interfaces\Order; use phpDocumentor\Reflection\Types\Void_; interface ShopifyServiceInterface { public function pushOrder($topic, $json); }
src/functions.php +23 −0 Original line number Diff line number Diff line Loading @@ -719,6 +719,29 @@ if (!function_exists('check_diff_val')) { } } if (!function_exists('to_camel_case')) { /** * 下划线命名转驼峰命名 * 例:demo_function : demoFunction * @param $dirSep 分隔符 * @param $str * @return mixed|string */ function to_camel_case($dirSep, $str) { $array = explode($dirSep, $str); $result = $array[0]; $len=count($array); if($len>1) { for($i=1;$i<$len;$i++) { $result.= ucfirst($array[$i]); } } return $result; } }