diff --git a/src/Actions/CountFriday13Action.php b/src/Actions/CountFriday13Action.php new file mode 100644 index 0000000000000000000000000000000000000000..c7986cd84ca2880d10e25b391da5d684f6e02888 --- /dev/null +++ b/src/Actions/CountFriday13Action.php @@ -0,0 +1,27 @@ +setDate($year, $i, 13); + + if ($next13->format("D") === "Fri") { + $AllFri13[] = $next13; + } + } + return $AllFri13; + } +} diff --git a/src/Controller/CountFriday13Controller.php b/src/Controller/CountFriday13Controller.php new file mode 100644 index 0000000000000000000000000000000000000000..dc3e7418aa51adf6719b9ca799e9f6381693f8fb --- /dev/null +++ b/src/Controller/CountFriday13Controller.php @@ -0,0 +1,25 @@ +act($request->serialise())); + } +} diff --git a/src/Requests/AllFri13Request.php b/src/Requests/AllFri13Request.php new file mode 100644 index 0000000000000000000000000000000000000000..d98cebb598d5216595bfd7c89d2b6e2b91662619 --- /dev/null +++ b/src/Requests/AllFri13Request.php @@ -0,0 +1,21 @@ +year; + } +} \ No newline at end of file