This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Sample | |
{ | |
public function test() | |
{ | |
echo 'aaaaaaa!!'; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface Vehicle | |
{ | |
public function run(); | |
public function stop(); | |
public function manipulateWindows(string $openOrClose); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class NotificationController | |
{ | |
private $service; | |
public function __construct(NotificationServiceInterface $service) | |
{ | |
$this->service = $service; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Controller | |
{ | |
private $service; | |
public function __construct(EmailLibInterface $service) | |
{ | |
$this->service = $service; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface NotificationServiceInterface | |
{ | |
public function send(int $notificationCode); | |
} | |
class UserNotificationService implements NotificationServiceInterface | |
{ | |
//略 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo 'Hello world'; php> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class FileImportController extends Controller | |
{ | |
public function dummy(FileImportRequest $request) | |
{ | |
$fileType = $request->file_type; | |
if ($fileType === config('values.file_type.office_work.value')) { | |
//do something |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="{{route('route_name')}}" method="post"> | |
@csrf | |
<input type="file" name="joblist_file" /> | |
<select name="file_type"> | |
@foreach(config('values.file_type') as $label => $fileType) | |
<option value="{{$fileType}}">{{$label}}</option> | |
@endforeach | |
</select> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services\FileImport\Interface; | |
use App\Models\Dto\FileImportDto; | |
interface FileImporterInterface | |
{ | |
/** | |
* readData |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services\FileImport\Importer; | |
use App\Models\Dto\FileImportDto; | |
use App\Services\FileImport\Interface\FileImporterInterface; | |
class RestaurantJoblistFileImporter implements FileImporterInterface | |
{ | |
public function readData(FileImportDto $fileDto): array |
OlderNewer