1<?php
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
11namespace SebastianBergmann\Diff\LCS;
12
13/**
14 * Interface for implementations of longest common subsequence calculation.
15 */
16interface 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}
28