Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Snippet / Appender / SnippetAppender.php
1 <?php
2
3 /*
4  * This file is part of the Behat.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
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 Behat\Behat\Snippet\Appender;
12
13 use Behat\Behat\Snippet\AggregateSnippet;
14 use Behat\Behat\Snippet\SnippetWriter;
15
16 /**
17  * Appends snippets to its targets. Used by SnippetWriter.
18  *
19  * @see SnippetWriter
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 interface SnippetAppender
24 {
25     /**
26      * Checks if appender supports snippet.
27      *
28      * @param AggregateSnippet $snippet
29      *
30      * @return Boolean
31      */
32     public function supportsSnippet(AggregateSnippet $snippet);
33
34     /**
35      * Appends snippet to the source.
36      *
37      * @param AggregateSnippet $snippet
38      */
39     public function appendSnippet(AggregateSnippet $snippet);
40 }