Security update for permissions_by_term
[yaffs-website] / vendor / behat / gherkin / src / Behat / Gherkin / Cache / CacheInterface.php
1 <?php
2
3 /*
4  * This file is part of the Behat Gherkin.
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\Gherkin\Cache;
12
13 use Behat\Gherkin\Node\FeatureNode;
14
15 /**
16  * Parser cache interface.
17  *
18  * @author     Konstantin Kudryashov <ever.zet@gmail.com>
19  */
20 interface CacheInterface
21 {
22     /**
23      * Checks that cache for feature exists and is fresh.
24      *
25      * @param string  $path      Feature path
26      * @param integer $timestamp The last time feature was updated
27      *
28      * @return Boolean
29      */
30     public function isFresh($path, $timestamp);
31
32     /**
33      * Reads feature cache from path.
34      *
35      * @param string $path Feature path
36      *
37      * @return FeatureNode
38      */
39     public function read($path);
40
41     /**
42      * Caches feature node.
43      *
44      * @param string      $path    Feature path
45      * @param FeatureNode $feature Feature instance
46      */
47     public function write($path, FeatureNode $feature);
48 }