You are here

interface LongestCommonSubsequence in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/sebastian/diff/src/LCS/LongestCommonSubsequence.php \SebastianBergmann\Diff\LCS\LongestCommonSubsequence

Interface for implementations of longest common subsequence calculation.

@package Diff @author Sebastian Bergmann <sebastian@phpunit.de> @author Kore Nordmann <mail@kore-nordmann.de> @copyright Sebastian Bergmann <sebastian@phpunit.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License @link http://www.github.com/sebastianbergmann/diff

Hierarchy

Expanded class hierarchy of LongestCommonSubsequence

All classes that implement LongestCommonSubsequence

1 file declares its use of LongestCommonSubsequence
Differ.php in vendor/sebastian/diff/src/Differ.php

File

vendor/sebastian/diff/src/LCS/LongestCommonSubsequence.php, line 23

Namespace

SebastianBergmann\Diff\LCS
View source
interface LongestCommonSubsequence {

  /**
   * Calculates the longest common subsequence of two arrays.
   *
   * @param  array $from
   * @param  array $to
   * @return array
   */
  public function calculate(array $from, array $to);

}

Members

Namesort descending Modifiers Type Description Overrides
LongestCommonSubsequence::calculate public function Calculates the longest common subsequence of two arrays. 2