src/Resource/ApiKeyResource.php
<?php
declare(strict_types = 1);
/**
* /src/Resource/ApiKeyResource.php
*
* @author TLe, Tarmo Leppänen <tarmo.leppanen@protacon.com>
*/
namespace App\Resource;
use App\DTO\RestDtoInterface;
use App\Entity\ApiKey as Entity;
use App\Entity\Interfaces\EntityInterface;
use App\Repository\ApiKeyRepository as Repository;
use App\Rest\RestResource;
/**
* @package App\Resource
* @author TLe, Tarmo Leppänen <tarmo.leppanen@protacon.com>
*
* @psalm-suppress LessSpecificImplementedReturnType
* @codingStandardsIgnoreStart
*
* @method Entity getReference(string $id)
* @method Repository getRepository()
* @method Entity[] find(?array $criteria = null, ?array $orderBy = null, ?int $limit = null, ?int $offset = null, ?array $search = null)
* @method Entity|null findOne(string $id, ?bool $throwExceptionIfNotFound = null)
* @method Entity|null findOneBy(array $criteria, ?array $orderBy = null, ?bool $throwExceptionIfNotFound = null)
* @method Entity create(RestDtoInterface $dto, ?bool $flush = null, ?bool $skipValidation = null)
* @method Entity update(string $id, RestDtoInterface $dto, ?bool $flush = null, ?bool $skipValidation = null)
* @method Entity patch(string $id, RestDtoInterface $dto, ?bool $flush = null, ?bool $skipValidation = null)
* @method Entity delete(string $id, ?bool $flush = null)
* @method Entity save(EntityInterface $entity, ?bool $flush = null, ?bool $skipValidation = null)
*
* @codingStandardsIgnoreEnd
*/
class ApiKeyResource extends RestResource
{
public function __construct(
Repository $repository,
) {
parent::__construct($repository);
}
}