original_string: protected function createFromObject(SymfonyUploadedFile $file)
      {
          $path = $file->getPathname();
          $original_name = $file->getClientOriginalName();
          $mime_type = $file->getClientMimeType();
          $size = $file->getSize();
          $error = $file->getError();
  
          $upload_file = new UploadedFile($path, $original_name, $mime_type, $size, $error);
  
          // Throw error if the object is not valid
          if ($upload_file->isValid() === false) {
              throw new FileException(
                  $upload_file->getErrorMessage(
                      $upload_file->getError()
                  )
              );
          }
  
          return $upload_file;
      }
code: protected function createFromObject(SymfonyUploadedFile $file)
      {
          $path = $file->getPathname();
          $original_name = $file->getClientOriginalName();
          $mime_type = $file->getClientMimeType();
          $size = $file->getSize();
          $error = $file->getError();
  
          $upload_file = new UploadedFile($path, $original_name, $mime_type, $size, $error);
  
          // Throw error if the object is not valid
          if ($upload_file->isValid() === false) {
              throw new FileException(
                  $upload_file->getErrorMessage(
                      $upload_file->getError()
                  )
              );
          }
  
          return $upload_file;
      }
code_tokens: protected function createFromObject ( SymfonyUploadedFile $ file ) { $ path = $ file -> getPathname ( ) ; $ original_name = $ file -> getClientOriginalName ( ) ; $ mime_type = $ file -> getClientMimeType ( ) ; $ size = $ file -> getSize ( ) ; $ error = $ file -> getError ( ) ; $ upload_file = new UploadedFile ( $ path , $ original_name , $ mime_type , $ size , $ error ) ; // Throw error if the object is not valid if ( $ upload_file -> isValid ( ) === false ) { throw new FileException ( $ upload_file -> getErrorMessage ( $ upload_file -> getError ( ) ) ) ; } return $ upload_file ; }
docstring: Build a \Torann\MediaSort\File\UploadedFile object from
  a Symfony\Component\HttpFoundation\File\UploadedFile object.
  
  @param \Symfony\Component\HttpFoundation\File\UploadedFile $file
  
  @return \Torann\MediaSort\File\UploadedFile
  @throws \Torann\MediaSort\Exceptions\FileException
docstring_tokens: Build a \ Torann \ MediaSort \ File \ UploadedFile object from a Symfony \ Component \ HttpFoundation \ File \ UploadedFile object .