LongestCommonSubsequenceCalculator.php 572 B

123456789101112131415161718192021222324
  1. <?php declare(strict_types=1);
  2. /*
  3. * This file is part of sebastian/diff.
  4. *
  5. * (c) Sebastian Bergmann <sebastian@phpunit.de>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace SebastianBergmann\Diff;
  11. interface LongestCommonSubsequenceCalculator
  12. {
  13. /**
  14. * Calculates the longest common subsequence of two arrays.
  15. *
  16. * @param array $from
  17. * @param array $to
  18. *
  19. * @return array
  20. */
  21. public function calculate(array $from, array $to): array;
  22. }