lib/SourceFile.php
static function fromJson(object $map): self {
    return new static(
      isset($map->name) && is_string($map->name) ? $map->name : '',
      isset($map->source_digest) && is_string($map->source_digest) ? $map->source_digest : '',
      isset($map->source) && is_string($map->source) ? $map->source : '',
      isset($map->coverage) && is_array($map->coverage) ? $map->coverage : []
    );
  }
static function fromJson(object $map): self {
    return new static(
      isset($map->name) && is_string($map->name) ? $map->name : '',
      isset($map->source_digest) && is_string($map->source_digest) ? $map->source_digest : '',
      isset($map->source) && is_string($map->source) ? $map->source : '',
      isset($map->coverage) && is_array($map->coverage) ? $map->coverage : []
    );
  }
static function fromJson ( object $ map ) : self { return new static ( isset ( $ map -> name ) && is_string ( $ map -> name ) ? $ map -> name : '' , isset ( $ map -> source_digest ) && is_string ( $ map -> source_digest ) ? $ map -> source_digest : '' , isset ( $ map -> source ) && is_string ( $ map -> source ) ? $ map -> source : '' , isset ( $ map -> coverage ) && is_array ( $ map -> coverage ) ? $ map -> coverage : [ ] ) ; }
Creates a new source file from the specified JSON map.
@param object $map A JSON map representing a source file.
@return static The instance corresponding to the specified JSON map.
Creates a new source file from the specified JSON map .