| 1 | <?php |
||
| 24 | class ChangeStream |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | private $stack = array(); |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Store a version of a resource in the ChangeStream to retrieve it if needed. |
||
| 33 | * |
||
| 34 | * @param string $path |
||
| 35 | * @param PuliResource $resource |
||
| 36 | */ |
||
| 37 | 12 | public function log($path, PuliResource $resource) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Create a stack of resources for the given path. |
||
| 48 | * |
||
| 49 | * @param ResourceRepository $repository |
||
| 50 | * @param string $path |
||
| 51 | * |
||
| 52 | * @return ResourceStack |
||
| 53 | */ |
||
| 54 | 8 | public function buildResourceStack(ResourceRepository $repository, $path) |
|
| 69 | } |
||
| 70 |