31 lines
529 B
PHP
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.
|
||
|
}
|
||
|
}
|