• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vysokeskoly / image-api-sdk / 12023120951

17 Oct 2024 11:09AM UTC coverage: 94.526%. Remained the same
12023120951

push

github

MortalFlesh
Version 3.3.0

259 of 274 relevant lines covered (94.53%)

20.3 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/Query/GetImageQuery.php
1
<?php declare(strict_types=1);
2

3
namespace VysokeSkoly\ImageApi\Sdk\Query;
4

5
use Lmc\Cqrs\Http\Query\AbstractHttpGetQuery;
6
use Lmc\Cqrs\Types\ValueObject\CacheTime;
7
use Psr\Http\Message\RequestFactoryInterface;
8
use VysokeSkoly\ImageApi\Sdk\ValueObject\Api;
9
use VysokeSkoly\ImageApi\Sdk\ValueObject\ImageHash;
10

11
class GetImageQuery extends AbstractHttpGetQuery
12
{
13
    public function __construct(RequestFactoryInterface $requestFactory, private Api $api, private ImageHash $imageHash)
14
    {
15
        parent::__construct($requestFactory);
2✔
16
    }
17

18
    public function getUri(): string
19
    {
20
        return $this->api->createUrl(sprintf('/image/%s', $this->imageHash));
2✔
21
    }
22

23
    public function getCacheTime(): CacheTime
24
    {
25
        return CacheTime::noCache();
2✔
26
    }
27
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc