| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class TrickHistory |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var EntityManagerInterface |
||
| 13 | */ |
||
| 14 | private $em; |
||
| 15 | |||
| 16 | private $repo; |
||
| 17 | |||
| 18 | public function __construct(EntityManagerInterface $em) |
||
| 19 | { |
||
| 20 | $this->em = $em; |
||
| 21 | $this->repo = $this->em->getRepository('Gedmo\Loggable\Entity\LogEntry'); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param $id |
||
| 26 | * @return LogEntry[] |
||
| 27 | * Get the modification history of a trick |
||
| 28 | */ |
||
| 29 | public function getHistory($id) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param $id |
||
| 39 | * @param $version |
||
| 40 | * Revert a trick to a history checkpoint. |
||
| 41 | */ |
||
| 42 | public function revertToHistory($id, $version){ |
||
| 52 | } |