original_string: protected function resolveSerializer($serializer):SerializerAbstract
      {
          if (is_string($serializer)) {
              $serializer = new $serializer;
          }
  
          if (! $serializer instanceof SerializerAbstract) {
              throw new InvalidSerializerException();
          }
  
          return $serializer;
      }
code: protected function resolveSerializer($serializer):SerializerAbstract
      {
          if (is_string($serializer)) {
              $serializer = new $serializer;
          }
  
          if (! $serializer instanceof SerializerAbstract) {
              throw new InvalidSerializerException();
          }
  
          return $serializer;
      }
code_tokens: protected function resolveSerializer ( $ serializer ) : SerializerAbstract { if ( is_string ( $ serializer ) ) { $ serializer = new $ serializer ; } if ( ! $ serializer instanceof SerializerAbstract ) { throw new InvalidSerializerException ( ) ; } return $ serializer ; }
docstring: Resolve a serializer instance from the value.
  
  @param  \League\Fractal\Serializer\SerializerAbstract|string $serializer
  @return \League\Fractal\Serializer\SerializerAbstract
  @throws \Flugg\Responder\Exceptions\InvalidSerializerException
docstring_tokens: Resolve a serializer instance from the value .