private function dumpResource($value, $name): void
  {
    list($id, $ref) = $this->isReference($value);

    $this->writer->writeResource($id, $ref, $name, get_resource_type($value));
  }
private function dumpResource($value, $name): void
  {
    list($id, $ref) = $this->isReference($value);

    $this->writer->writeResource($id, $ref, $name, get_resource_type($value));
  }
private function dumpResource ( $ value , $ name ) : void { list ( $ id , $ ref ) = $ this -> isReference ( $ value ) ; $ this -> writer -> writeResource ( $ id , $ ref , $ name , get_resource_type ( $ value ) ) ; }
Dumps a resource.

@param resource $value The resource.
@param string   $name  The name of the variable.
Dumps a resource .