1 | <?php |
||
8 | class GitAski |
||
9 | { |
||
10 | /** @var SymfonyStyle */ |
||
11 | private $io; |
||
12 | |||
13 | /** @var GitProcessor */ |
||
14 | private $gitProcessor; |
||
15 | |||
16 | /** @var DateTime */ |
||
17 | private $lastSunday; |
||
18 | |||
19 | /** |
||
20 | * Gitaski constructor. |
||
21 | * |
||
22 | * @param boolean $force |
||
23 | * @param string $githubRepositoryUrl |
||
24 | * @param $inputFilePath |
||
25 | * @param $outputFilename |
||
26 | * @param array $commitMessages |
||
27 | */ |
||
28 | public function __construct($force, $githubRepositoryUrl, $inputFilePath, $outputFilename, array $commitMessages) |
||
36 | |||
37 | /** |
||
38 | * @param SymfonyStyle $io |
||
39 | */ |
||
40 | public function setIo($io) |
||
45 | |||
46 | public function writeText($str) |
||
59 | |||
60 | public function writeJson($filename) |
||
72 | |||
73 | public function clean() { |
||
76 | |||
77 | /** |
||
78 | * @param $symbol |
||
79 | */ |
||
80 | private function write($symbol) |
||
86 | } |
||
87 |