annotate vendor/sebastian/diff/src/LCS/LongestCommonSubsequence.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 7a779792577d
rev   line source
Chris@0 1 <?php
Chris@0 2 /*
Chris@0 3 * This file is part of the Diff package.
Chris@0 4 *
Chris@0 5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
Chris@0 6 *
Chris@0 7 * For the full copyright and license information, please view the LICENSE
Chris@0 8 * file that was distributed with this source code.
Chris@0 9 */
Chris@0 10
Chris@0 11 namespace SebastianBergmann\Diff\LCS;
Chris@0 12
Chris@0 13 /**
Chris@0 14 * Interface for implementations of longest common subsequence calculation.
Chris@0 15 */
Chris@0 16 interface LongestCommonSubsequence
Chris@0 17 {
Chris@0 18 /**
Chris@0 19 * Calculates the longest common subsequence of two arrays.
Chris@0 20 *
Chris@0 21 * @param array $from
Chris@0 22 * @param array $to
Chris@0 23 *
Chris@0 24 * @return array
Chris@0 25 */
Chris@0 26 public function calculate(array $from, array $to);
Chris@0 27 }