Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1.    /**
  2.      * @param $type
  3.      * @return null|string
  4.      */
  5.     protected function getMapperClass($type)
  6.     {
  7.         $potentialEndpointClass = 'SphereMall\\MS\\Lib\\Mappers\\' . ucfirst($type) . 'Mapper';
  8.         if (class_exists($potentialEndpointClass)) {
  9.             return $potentialEndpointClass;
  10.         }
  11.  
  12.         return null;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement