app/Media.php
public function mediaFiles(): Collection
    {
        return $this->facts(['FILE'])
            ->map(function (Fact $fact): MediaFile {
                return new MediaFile($fact->gedcom(), $this);
            });
    }
public function mediaFiles(): Collection
    {
        return $this->facts(['FILE'])
            ->map(function (Fact $fact): MediaFile {
                return new MediaFile($fact->gedcom(), $this);
            });
    }
public function mediaFiles ( ) : Collection { return $ this -> facts ( [ 'FILE' ] ) -> map ( function ( Fact $ fact ) : MediaFile { return new MediaFile ( $ fact -> gedcom ( ) , $ this ) ; } ) ; }
Get the media files for this media object

@return Collection
@return MediaFile[]
Get the media files for this media object