original_string: public static function byId($id, $namespace)
      {
          $json = \MongoDB\BSON\toJSON(\MongoDB\BSON\fromPHP(['_id' => $id]));
  
          return new static(sprintf('File "%s" not found in "%s"', $json, $namespace));
      }
code: public static function byId($id, $namespace)
      {
          $json = \MongoDB\BSON\toJSON(\MongoDB\BSON\fromPHP(['_id' => $id]));
  
          return new static(sprintf('File "%s" not found in "%s"', $json, $namespace));
      }
code_tokens: public static function byId ( $ id , $ namespace ) { $ json = \ MongoDB \ BSON \ toJSON ( \ MongoDB \ BSON \ fromPHP ( [ '_id' => $ id ] ) ) ; return new static ( sprintf ( 'File "%s" not found in "%s"' , $ json , $ namespace ) ) ; }
docstring: Thrown when a file cannot be found by its ID.
  
  @param mixed  $id        File ID
  @param string $namespace Namespace for the files collection
  @return self
docstring_tokens: Thrown when a file cannot be found by its ID .