wip: initial class setup

This commit is contained in:
Oliver Davies 2022-01-13 20:13:28 +00:00
parent 06f764a188
commit 2962800349
4 changed files with 45 additions and 0 deletions

10
src/AttendeeLoader.php Normal file
View file

@ -0,0 +1,10 @@
<?php
namespace App;
use Illuminate\Support\Collection;
interface AttendeeLoader
{
public function getAttendees(): Collection;
}

8
src/EventRepository.php Normal file
View file

@ -0,0 +1,8 @@
<?php
namespace App;
interface EventRepository
{
public function getConfirmedAttendees(): array;
}

View file

@ -0,0 +1,13 @@
<?php
namespace App\Tests;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
final class EventRepositoryTest extends KernelTestCase
{
/** @test */
public function should_only_return_attendees_with_a_yes_rsvp(): array {
return [];
}
}

View file

@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
namespace App\Tests;
use App\EventRepository;
final class FakeEventRepository implements EventRepository
{
public function getConfirmedAttendees(): array {
return [];
}
}