Completed
Push — master ( 1a4c19...c1db7b )
by Ben
02:15
created

NullEncryption   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A encrypt() 0 4 1
A writeEncryptDictionary() 0 3 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 writeEncryptDictionary(ObjectWriter $objectWriter)
31
    {
32
    }
33
}
34