Pull merge.
[yaffs-website] / vendor / consolidation / robo / src / State / StateAwareInterface.php
1 <?php
2 namespace Robo\State;
3
4 use Robo\State\Data;
5
6 interface StateAwareInterface
7 {
8     /**
9      * @return Data
10      */
11     public function getState();
12
13     /**
14      * @param Data state
15      */
16     public function setState(Data $state);
17
18     /**
19      * @param $key
20      * @param value
21      */
22     public function setStateValue($key, $value);
23
24     /**
25      * @param Data update state takes precedence over current state.
26      */
27     public function updateState(Data $update);
28
29     public function resetState();
30 }