original_string: protected function includeByName( $name, $model )
      {
  
          $functionName = sprintf( 'include%s', ucfirst( $name ) );
  
          if ( ! method_exists( static::class, $functionName ) ) {
              throw new \Exception(sprintf( 'The function name "%s" does not exists on %s', $functionName, static::class ));
          }
  
          return $this->{$functionName}( $model );
  
      }
code: protected function includeByName( $name, $model )
      {
  
          $functionName = sprintf( 'include%s', ucfirst( $name ) );
  
          if ( ! method_exists( static::class, $functionName ) ) {
              throw new \Exception(sprintf( 'The function name "%s" does not exists on %s', $functionName, static::class ));
          }
  
          return $this->{$functionName}( $model );
  
      }
code_tokens: protected function includeByName ( $ name , $ model ) { $ functionName = sprintf ( 'include%s' , ucfirst ( $ name ) ) ; if ( ! method_exists ( static :: class , $ functionName ) ) { throw new \ Exception ( sprintf ( 'The function name "%s" does not exists on %s' , $ functionName , static :: class ) ) ; } return $ this -> { $ functionName } ( $ model ) ; }
docstring: Call the include function thats equal to the name
  
  @return Array
docstring_tokens: Call the include function thats equal to the name