Completed
Push — master ( bc5c42...47bad9 )
by Ben
02:53
created

Pdf14Encryption::getAlgorithm()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * BaconPdf
4
 *
5
 * @link      http://github.com/Bacon/BaconPdf For the canonical source repository
6
 * @copyright 2015 Ben Scholzen (DASPRiD)
7
 * @license   http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
8
 */
9
10
namespace Bacon\Pdf\Encryption;
11
12
class Pdf14Encryption extends Pdf11Encryption
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    protected function writeAdditionalEncryptDictionaryEntries(PdfWriter $pdfWriter)
18
    {
19
        $pdfWriter->writeName('Length');
20
        $pdfWriter->writeNumber(128);
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    protected function getRevision()
27
    {
28
        return 3;
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    protected function getAlgorithm()
35
    {
36
        return 2;
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    protected function getKeyLength()
43
    {
44
        return 128;
45
    }
46
}
47