36 lines
686 B
PHP
36 lines
686 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Entity;
|
|
|
|
|
|
use ApiPlatform\Core\Annotation\ApiProperty;
|
|
use ApiPlatform\Core\Annotation\ApiResource;
|
|
use ApiPlatform\Core\Action\NotFoundAction;
|
|
|
|
/**
|
|
* @ApiResource(
|
|
* itemOperations={
|
|
* "get"={
|
|
* "method"="GET",
|
|
* "controller"=NotFoundAction::class,
|
|
* "read"=false,
|
|
* "output"=false,
|
|
* },
|
|
* },
|
|
* collectionOperations={"get"}
|
|
* )
|
|
*
|
|
*/
|
|
class PriceNow
|
|
{
|
|
/**
|
|
* @ApiProperty(identifier=true)
|
|
*/
|
|
public ?int $id = null;
|
|
|
|
public ?int $min = null;
|
|
public ?int $max = null;
|
|
public ?int $avg = null;
|
|
public ?int $now = null;
|
|
} |