| 1 | <?php |
||
| 7 | trait Commit |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var bool |
||
| 11 | */ |
||
| 12 | private $committed = false; |
||
| 13 | |||
| 14 | abstract public function canCommit(); |
||
| 15 | |||
| 16 | /** |
||
| 17 | * {@inheritdoc} |
||
| 18 | */ |
||
| 19 | 7 | public function commit() |
|
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public function isCommitted() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | 1 | public function allowChanges() |
|
| 46 | } |
||
| 47 |