<?php

/*
 * This file is part of the Behat.
 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Behat\Behat\Output\Node\Printer;

use Behat\Behat\Tester\Result\StepResult;
use Behat\Gherkin\Node\FeatureNode;
use Behat\Gherkin\Node\OutlineNode;
use Behat\Testwork\Output\Formatter;
use Behat\Testwork\Tester\Result\TestResult;

/**
 * Prints outline table representation headers and footers.
 *
 * @author Konstantin Kudryashov <ever.zet@gmail.com>
 */
interface OutlineTablePrinter
{
    /**
     * Prints outline header using provided printer and first row example step results.
     *
     * @param StepResult[] $results
     */
    public function printHeader(Formatter $formatter, FeatureNode $feature, OutlineNode $outline, array $results);

    /**
     * Prints outline footer using provided printer.
     */
    public function printFooter(Formatter $formatter, TestResult $result);
}
