This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
14
{
15
/** @var string $id */
16
protected $id;
17
18
/** @var bool $onlyEetPayments */
19
protected $onlyEetPayments;
20
21
/**
22
* @param string $id
23
* @param bool $onlyEetPayments
24
*/
25
public function __construct(string $id, bool $onlyEetPayments = false)
26
{
27
$this->id = $id;
28
$this->onlyEetPayments = $onlyEetPayments;
29
}
30
31
/**
32
* Get iDokladModelInterface class.
33
*
34
* @see iDokladModelInterface
35
*
36
* @return string
37
*/
38
public function getModelClass(): string
39
{
40
return PdfBase64Model::class;
41
}
42
43
/**
44
* GET|POST|PUT|DELETE e.g.
45
*
46
* @see iDoklad::request()
47
*
48
* @return string
49
*/
50
public function getHttpMethod(): string
51
{
52
return 'GET';
53
}
54
55
/**
56
* Return base URI, e.g. /invoices; /invoice/1/edit and so on.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.