/**
  * @param Vampire $vampire
  * @param TombstoneIndex $tombstoneIndex
  *
  * @return Tombstone|null
  */
 public function matchVampireToTombstone(Vampire $vampire, TombstoneIndex $tombstoneIndex)
 {
     if ($matchingTombstone = $tombstoneIndex->getInFileAndLine($vampire->getFile(), $vampire->getLine())) {
         if ($vampire->inscriptionEquals($matchingTombstone)) {
             return $matchingTombstone;
         }
     }
     return null;
 }
 /**
  * @param Vampire $vampire
  * @param TombstoneIndex $tombstoneIndex
  *
  * @return Tombstone|null
  */
 public function matchVampireToTombstone(Vampire $vampire, TombstoneIndex $tombstoneIndex)
 {
     if ($matchingTombstones = $tombstoneIndex->getInMethod($vampire->getMethod())) {
         foreach ($matchingTombstones as $matchingTombstone) {
             if ($vampire->inscriptionEquals($matchingTombstone)) {
                 return $matchingTombstone;
             }
         }
     }
     return null;
 }