XPDFFont   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
namespace SKien\XFPDF;
3
4
/**
5
 * Helper class to hold information for a font in a pdf document
6
 *
7
 * @package SKien/XFPDF
8
 * @since 1.1.0
9
 * @version 1.1.0
10
 * @author Stefanius <[email protected]>
11
 * @copyright MIT License - see the LICENSE file for details
12
 */
13
class XPDFFont
14
{
15
    /** @var string fontname	 */
16
    public string $strFontname;
17
    /** @var int size	 */
18
    public int $iSize;
19
    /** @var string style	 */
20
    public string $strStyle;
21
22
    /**
23
     * Creates a Font-object
24
     * @param string $strFontname
25
     * @param string $strStyle		'B', 'I' or 'BI'
26
     * @param int $iSize
27
     */
28
    function __construct(string $strFontname, string $strStyle, int $iSize)
29
    {
30
        $this->strFontname = $strFontname;
31
        $this->strStyle = $strStyle;
32
        $this->iSize = $iSize;
33
    }
34
}
35