comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2 /*
3 * This file is part of the Diff package.
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
11 namespace SebastianBergmann\Diff\LCS;
12
13 /**
14 * Interface for implementations of longest common subsequence calculation.
15 */
16 interface LongestCommonSubsequence
17 {
18 /**
19 * Calculates the longest common subsequence of two arrays.
20 *
21 * @param array $from
22 * @param array $to
23 *
24 * @return array
25 */
26 public function calculate(array $from, array $to);
27 }