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 | |
public function paginate($object, array $settings = []) | |
{ | |
// 第1引数がQueryInterfaceを実装したobjectだったら | |
// RepositoryInterfaceを実装したオブジェクトを呼び出す | |
if ($object instanceof QueryInterface) { | |
$query = $object; | |
$object = $query->repository(); | |
} |
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
getEvent | |
1. event | |
2. sheets配列に作ったsheetをappend | |
3. reservations配列に作ったreservationをappend | |
4. sheetに予約を当てはめていく | |
- sheet構造体を作る | |
- 該当のevent.Sheetsのdetailにsheetを当てはめる | |
- イベント構造体にイベント情報を格納 | |
- eventのsheetsフィールドはSheets構造体のmapなのん |