| 1 | <?php |
||
| 24 | class RevisionContext implements RevisionContextInterface |
||
| 25 | { |
||
| 26 | const REVISION_PARAMETER_NAME = 'swp_revision_key'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var RevisionInterface |
||
| 30 | */ |
||
| 31 | protected $currentRevision; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var RevisionInterface |
||
| 35 | */ |
||
| 36 | protected $publishedRevision; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var RevisionInterface |
||
| 40 | */ |
||
| 41 | protected $workingRevision; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function getCurrentRevision(): RevisionInterface |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | public function setCurrentRevision(RevisionInterface $revision) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | public function getPublishedRevision(): RevisionInterface |
||
| 66 | |||
| 67 | /** |
||
| 68 | * {@inheritdoc} |
||
| 69 | */ |
||
| 70 | public function setPublishedRevision(RevisionInterface $revision) |
||
| 74 | |||
| 75 | /** |
||
| 76 | * {@inheritdoc} |
||
| 77 | */ |
||
| 78 | public function getWorkingRevision() |
||
| 82 | |||
| 83 | /** |
||
| 84 | * {@inheritdoc} |
||
| 85 | */ |
||
| 86 | public function setWorkingRevision(RevisionInterface $revision) |
||
| 90 | } |
||
| 91 |