File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 55require __DIR__ . '/vendor/autoload.php ' ;
66
77use BOA \Programs \ProgramScraper ;
8- use BOA \Programs \ProgramStorage ;
8+ use BOA \Programs \ProgramSaver ;
99use BOA \Programs \ScraperAdapter ;
1010use BVP \Scraper \Scraper ;
1111use Carbon \CarbonImmutable as Carbon ;
3434// 出走表データを JSON ファイルとして保存
3535// 日付付きの JSON ファイルとして保存(例: docs/{version}/YYYY/YYYYMMDD.json)
3636// 最新データとして today.json にも保存
37- $ storage = new ProgramStorage ();
37+ $ storage = new ProgramSaver ();
3838$ storage ->save ($ programs , "docs/ {$ version }/ " . $ date ->format ('Y ' ) . '/ ' . $ date ->format ('Ymd ' ) . '.json ' );
3939$ storage ->save ($ programs , "docs/ {$ version }/today.json " );
Original file line number Diff line number Diff line change 99 *
1010 * @author shimomo
1111 */
12- final class ProgramStorage
12+ final class ProgramSaver
1313{
1414 /**
1515 * @psalm-param ScrapedStadiumRaces $programs
Original file line number Diff line number Diff line change 44
55namespace BOA \Programs \Tests ;
66
7- use BOA \Programs \ProgramStorage ;
7+ use BOA \Programs \ProgramSaver ;
88use PHPUnit \Framework \TestCase ;
99
1010/**
1111 * @author shimomo
1212 */
13- final class ProgramStorageTest extends TestCase
13+ final class ProgramSaverTest extends TestCase
1414{
1515 /**
1616 * @psalm-var non-empty-string
@@ -59,7 +59,7 @@ protected function tearDown(): void
5959 */
6060 public function testSave (): void
6161 {
62- $ storage = new ProgramStorage ();
62+ $ storage = new ProgramSaver ();
6363 $ path = $ this ->tempDir . '/programs.json ' ;
6464
6565 $ programs = [
You can’t perform that action at this time.
0 commit comments