Completed
Push — master ( 0ca4f0...992805 )
by Damien
07:27
created

MappingHelper::isSupportedField()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
4
namespace flipbox\saml\core\helpers;
5
6
use craft\base\Field;
7
use flipbox\saml\core\fields\AbstractExternalIdentity;
8
9
class MappingHelper
10
{
11
    /**
12
     *
13
     * @param Field $field
14
     * @return bool
15
     */
16
    public static function isSupportedField(Field $field)
17
    {
18
19
        return ! $field instanceof AbstractExternalIdentity;
20
    }
21
22
}