| 1 | <?php |
||
| 20 | class SharedStorageContext implements Context |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var SharedStorageInterface |
||
| 24 | */ |
||
| 25 | private $sharedStorage; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param SharedStorageInterface $sharedStorage |
||
| 29 | */ |
||
| 30 | public function __construct(SharedStorageInterface $sharedStorage) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @Transform it |
||
| 37 | */ |
||
| 38 | public function getLatestResource() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @Transform /^(?:this|that|the) ([^"]+)$/ |
||
| 45 | */ |
||
| 46 | public function getResource($resource) |
||
| 50 | } |
||
| 51 |