1 | <?php |
||
5 | class ChangelogManager { |
||
6 | /** @var \ChangelogParser\Driver\Driver **/ |
||
7 | protected $driver; |
||
8 | /** @var \ChangelogParser\Manager\CacheManager **/ |
||
9 | protected $cacheManager; |
||
10 | /** @var string **/ |
||
11 | protected $storagePath; |
||
12 | |||
13 | 2 | public function __construct() { |
|
16 | |||
17 | /** |
||
18 | * @param string $storagePath |
||
19 | * @return \ChangelogParser\Driver\Driver |
||
20 | */ |
||
21 | 2 | public function setStoragePath($storagePath) { |
|
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getStoragePath() { |
||
33 | |||
34 | /** |
||
35 | * @param string $filepath |
||
36 | * @param string $format |
||
37 | * @return mixed |
||
38 | */ |
||
39 | 1 | public function getLastVersion($filepath, $format = 'json') { |
|
50 | |||
51 | /** |
||
52 | * @param string $filepath |
||
53 | * @param string $format |
||
54 | * @return mixed |
||
55 | */ |
||
56 | 1 | public function getAllVersions($filepath, $format = 'json') { |
|
67 | |||
68 | /** |
||
69 | * @param string $format |
||
70 | * @throws \InvalidArgumentException |
||
71 | */ |
||
72 | 2 | public function initializeDriver($format) { |
|
84 | |||
85 | /** |
||
86 | * @return \ChangelogParser\Manager\CacheManager |
||
87 | */ |
||
88 | public function getCacheManager() { |
||
91 | } |