original_string: public static function getRepositoryClassnameByReference($reference)
      {
          $parts = explode(':', $reference);
  
          // Check name is string
          if (!is_string($reference) || count($parts) !== 3) {
              throw new \Exception("Invalid Repository Class Reference. Repository reference should consist of 3 parts separated by colon, for example v1:Products:MyRepository");
          }
  
          return $parts[0] . '\\' . $parts[1] . '\\' . 'Entity\\' . $parts[2];
      }
code: public static function getRepositoryClassnameByReference($reference)
      {
          $parts = explode(':', $reference);
  
          // Check name is string
          if (!is_string($reference) || count($parts) !== 3) {
              throw new \Exception("Invalid Repository Class Reference. Repository reference should consist of 3 parts separated by colon, for example v1:Products:MyRepository");
          }
  
          return $parts[0] . '\\' . $parts[1] . '\\' . 'Entity\\' . $parts[2];
      }
code_tokens: public static function getRepositoryClassnameByReference ( $ reference ) { $ parts = explode ( ':' , $ reference ) ; // Check name is string if ( ! is_string ( $ reference ) || count ( $ parts ) !== 3 ) { throw new \ Exception ( "Invalid Repository Class Reference. Repository reference should consist of 3 parts separated by colon, for example v1:Products:MyRepository" ) ; } return $ parts [ 0 ] . '\\' . $ parts [ 1 ] . '\\' . 'Entity\\' . $ parts [ 2 ] ; }
docstring: Gets Repository class name by Reference
  
  @param   string  $reference      Reference to Repository class.
  This should be in a form of {version}:{controller}:{repositoryName}
  For example: v1:Products:MyRepository
  Will resolve to: 'v1\Products\Entity\MyRepository'
  @return  string
docstring_tokens: Gets Repository class name by Reference