app/Fact.php
public function getMedia(): array
    {
        $media = [];
        preg_match_all('/\n2 OBJE @(' . Gedcom::REGEX_XREF . ')@/', $this->gedcom(), $matches);
        foreach ($matches[1] as $match) {
            $obje = Media::getInstance($match, $this->record()->tree());
            if ($obje && $obje->canShow()) {
                $media[] = $obje;
            }
        }

        return $media;
    }
public function getMedia(): array
    {
        $media = [];
        preg_match_all('/\n2 OBJE @(' . Gedcom::REGEX_XREF . ')@/', $this->gedcom(), $matches);
        foreach ($matches[1] as $match) {
            $obje = Media::getInstance($match, $this->record()->tree());
            if ($obje && $obje->canShow()) {
                $media[] = $obje;
            }
        }

        return $media;
    }
public function getMedia ( ) : array { $ media = [ ] ; preg_match_all ( '/\n2 OBJE @(' . Gedcom :: REGEX_XREF . ')@/' , $ this -> gedcom ( ) , $ matches ) ; foreach ( $ matches [ 1 ] as $ match ) { $ obje = Media :: getInstance ( $ match , $ this -> record ( ) -> tree ( ) ) ; if ( $ obje && $ obje -> canShow ( ) ) { $ media [ ] = $ obje ; } } return $ media ; }
Media objects linked to this fact

@return Media[]
Media objects linked to this fact