Untitled
unknown
plain_text
2 years ago
779 B
16
Indexable
<?php
namespace App\DTO;
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Get;
use App\State\DashboardProvider;
#[ApiResource(operations: [
new Get(
uriTemplate: '/dashboard/{school}/{user}',
output: DashboardDTO::class,
provider: DashboardProvider::class
)
])]
class DashboardDTO
{
public $id;
private $school;
private $user;
public function getId()
{
return $this->id;
}
public function getSchool()
{
return $this->school;
}
public function setSchool($school): void
{
$this->school = $school;
}
public function getUser()
{
return $this->user;
}
public function setUser($user): void
{
$this->user = $user;
}
}Editor is loading...
Leave a Comment