Passed
Push — master ( 81681b...b20343 )
by Tim
02:25
created

EncryptableElementTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 9
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getBlacklistedAlgorithms() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SAML2\XML;
6
7
use SimpleSAML\SAML2\Compat\ContainerSingleton;
8
use SimpleSAML\XMLSecurity\XML\EncryptableElementTrait as ParentEncryptableElementTrait;
9
10
/**
11
 * Trait aggregating functionality for elements that are encrypted.
12
 *
13
 * @package simplesamlphp/saml2
14
 */
15
trait EncryptableElementTrait
16
{
17
    use ParentEncryptableElementTrait;
18
19
20
    public function getBlacklistedAlgorithms(): ?array
21
    {
22
        $container = ContainerSingleton::getInstance();
23
        return $container->getBlacklistedEncryptionAlgorithms();
24
    }
25
}
26