GetProformaInvoicePdfCompressed   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 26
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getModelClass() 0 4 1
A getUri() 0 4 1
1
<?php
2
3
namespace Fousky\Component\iDoklad\Functions\ProformaInvoices;
4
5
use Fousky\Component\iDoklad\Model\Other\ZipBase64Model;
6
7
/**
8
 * @see https://app.idoklad.cz/developer/Help/v2/cs/Api?apiId=GET-api-v2-ProformaInvoices-id-GetPdfCompressed
9
 *
10
 * @author Lukáš Brzák <[email protected]>
11
 */
12
class GetProformaInvoicePdfCompressed extends GetProformaInvoicePdf
13
{
14
    /**
15
     * Get iDokladModelInterface class.
16
     *
17
     * @see iDokladModelInterface
18
     *
19
     * @return string
20
     */
21
    public function getModelClass(): string
22
    {
23
        return ZipBase64Model::class;
24
    }
25
26
    /**
27
     * Return base URI, e.g. /invoices; /invoice/1/edit and so on.
28
     *
29
     * @see iDoklad::call()
30
     *
31
     * @return string
32
     */
33
    public function getUri(): string
34
    {
35
        return sprintf('ProformaInvoices/%s/GetPdfCompressed', $this->id);
36
    }
37
}
38