Completed
Push — master ( 7a405c...245614 )
by Ben
02:22
created

NullEncryption::writeEncryptDictionary()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 1
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
use Bacon\Pdf\Writer\ObjectWriter;
13
14
/**
15
 * Null encryption which will just return plaintext.
16
 */
17
final class NullEncryption implements EncryptionInterface
18
{
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function encrypt($plaintext, $objectNumber, $generationNumber)
23
    {
24
        return $plaintext;
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function writeEncryptEntry(ObjectWriter $objectWriter)
31
    {
32
    }
33
}
34