Skip to content

Commit 07d8ee1

Browse files
committed
refactor: rename class from ProgramStorage to ProgramSaver
1 parent df9c0d9 commit 07d8ee1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

scraper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
require __DIR__ . '/vendor/autoload.php';
66

77
use BOA\Programs\ProgramScraper;
8-
use BOA\Programs\ProgramStorage;
8+
use BOA\Programs\ProgramSaver;
99
use BOA\Programs\ScraperAdapter;
1010
use BVP\Scraper\Scraper;
1111
use Carbon\CarbonImmutable as Carbon;
@@ -34,6 +34,6 @@
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");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @author shimomo
1111
*/
12-
final class ProgramStorage
12+
final class ProgramSaver
1313
{
1414
/**
1515
* @psalm-param ScrapedStadiumRaces $programs
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
namespace BOA\Programs\Tests;
66

7-
use BOA\Programs\ProgramStorage;
7+
use BOA\Programs\ProgramSaver;
88
use 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 = [

0 commit comments

Comments
 (0)