-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
124 additions
and
8 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...tions/2023_03_15_101928_add_meeting_link_field_to_consultation_access_enquiries_table.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
class AddMeetingLinkFieldToConsultationAccessEnquiriesTable extends Migration | ||
{ | ||
public function up(): void | ||
{ | ||
Schema::table('consultation_access_enquiries', function (Blueprint $table) { | ||
$table->string('meeting_link')->nullable(); | ||
}); | ||
} | ||
|
||
public function down(): void | ||
{ | ||
Schema::table('consultation_access_enquiries', function (Blueprint $table) { | ||
$table->dropColumn('meeting_link'); | ||
}); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace EscolaLms\ConsultationAccess\Dtos; | ||
|
||
use EscolaLms\Core\Dtos\Contracts\DtoContract; | ||
use EscolaLms\Core\Dtos\Contracts\InstantiateFromRequest; | ||
use Illuminate\Http\Request; | ||
|
||
class ApproveConsultationAccessEnquiryDto implements DtoContract, InstantiateFromRequest | ||
{ | ||
private int $proposedTermId; | ||
private ?string $meetingLink; | ||
|
||
public function __construct(int $proposedTermId, ?string $meetingLink) | ||
{ | ||
$this->proposedTermId = $proposedTermId; | ||
$this->meetingLink = $meetingLink; | ||
} | ||
|
||
public function toArray(): array | ||
{ | ||
return []; | ||
} | ||
|
||
public function getProposedTermId(): int | ||
{ | ||
return $this->proposedTermId; | ||
} | ||
|
||
public function getMeetingLink(): ?string | ||
{ | ||
return $this->meetingLink; | ||
} | ||
|
||
public static function instantiateFromRequest(Request $request): ApproveConsultationAccessEnquiryDto | ||
{ | ||
return new static( | ||
$request->input('proposed_term_id'), | ||
$request->input('meeting_link') | ||
); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace EscolaLms\ConsultationAccess\Events; | ||
|
||
class ConsultationAccessEnquiryApprovedEvent extends ConsultationAccessEnquiryEvent | ||
{ | ||
} |
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
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
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
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
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
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
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
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