2021-07-15 21:17:48 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Pdf;
|
|
|
|
|
2021-07-17 16:57:37 +02:00
|
|
|
use App\Member\Member;
|
2021-10-29 21:44:23 +02:00
|
|
|
use App\Payment\Payment;
|
2021-07-17 17:13:16 +02:00
|
|
|
use Carbon\Carbon;
|
2021-07-15 21:17:48 +02:00
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
|
|
|
|
interface PdfRepository
|
|
|
|
{
|
|
|
|
|
|
|
|
public function getSubject(): string;
|
|
|
|
|
|
|
|
public function setFilename(string $filename): self;
|
|
|
|
|
|
|
|
public function getFilename(): string;
|
|
|
|
|
2021-07-16 00:12:19 +02:00
|
|
|
public function getView(): string;
|
|
|
|
|
|
|
|
public function getTemplate(): string;
|
|
|
|
|
2021-07-17 15:16:29 +02:00
|
|
|
public function getPositions(Collection $page): array;
|
|
|
|
|
|
|
|
public function getFamilyName(Collection $page): string;
|
|
|
|
|
|
|
|
public function getAddress(Collection $page): string;
|
|
|
|
|
|
|
|
public function getZip(Collection $page): string;
|
|
|
|
|
|
|
|
public function getLocation(Collection $page): string;
|
|
|
|
|
2021-07-17 16:57:37 +02:00
|
|
|
public function createable(Member $member): bool;
|
|
|
|
|
2021-07-17 19:21:27 +02:00
|
|
|
public function getPayments(Member $member): Collection;
|
|
|
|
|
2021-07-17 16:57:37 +02:00
|
|
|
public function linkLabel(): string;
|
|
|
|
|
2021-07-17 17:13:16 +02:00
|
|
|
public function getUntil(): Carbon;
|
|
|
|
|
2021-07-17 17:29:59 +02:00
|
|
|
public function getUsage(Collection $page): string;
|
|
|
|
|
2021-07-17 18:46:02 +02:00
|
|
|
public function allLabel(): string;
|
|
|
|
|
2021-07-18 21:38:00 +02:00
|
|
|
public function getEmail(Collection $page): string;
|
|
|
|
|
2021-10-29 21:44:23 +02:00
|
|
|
public function getDescription(): array;
|
|
|
|
|
|
|
|
public function afterSingle(Payment $payment): void;
|
|
|
|
|
2021-07-15 21:17:48 +02:00
|
|
|
}
|