FontEncoding   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
/**
5
 * FontEncoding class.
6
 *
7
 * @package   YetiForcePDF\Objects
8
 *
9
 * @copyright YetiForce Sp. z o.o
10
 * @license   MIT
11
 * @author    Rafal Pospiech <[email protected]>
12
 */
13
14
namespace YetiForcePDF\Objects;
15
16
/**
17
 * Class FontEncoding.
18
 */
19
class FontEncoding extends \YetiForcePDF\Objects\Resource
20
{
21
	/**
22
	 * Encoding.
23
	 *
24
	 * @var string
25
	 */
26
	protected $encoding = 'WinAnsiEncoding';
27
28
	/**
29
	 * {@inheritdoc}
30
	 */
31
	public function render(): string
32
	{
33
		return implode("\n", [
34
			$this->getRawId() . ' obj',
35
			'<</Type Encoding',
36
			'  /BaseEncoding /' . $this->encoding,
37
			'>>',
38
			'endobj',
39
		]);
40
	}
41
}
42