CourseWork/app/Services/ScoreService.php
2024-05-13 16:44:00 +04:00

31 lines
529 B
PHP

<?php
namespace App\Services;
use App\Models\Lesson;
use Illuminate\Database\Eloquent\Model;
class ScoreService implements ServiceInterface
{
public function getAll(?Lesson $lesson = null)
{
return $lesson->grade->students;
}
public function create(array $data): Model
{
}
public function update(Model $model, array $data): Model
{
// TODO: Implement update() method.
}
public function delete(Model $model)
{
// TODO: Implement delete() method.
}
}