4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Behat\Snippet\Appender;
13 use Behat\Behat\Snippet\AggregateSnippet;
14 use Behat\Behat\Snippet\SnippetWriter;
17 * Appends snippets to its targets. Used by SnippetWriter.
21 * @author Konstantin Kudryashov <ever.zet@gmail.com>
23 interface SnippetAppender
26 * Checks if appender supports snippet.
28 * @param AggregateSnippet $snippet
32 public function supportsSnippet(AggregateSnippet $snippet);
35 * Appends snippet to the source.
37 * @param AggregateSnippet $snippet
39 public function appendSnippet(AggregateSnippet $snippet);