Completed
Push — EZP-31287 ( fe8c5c...af9523 )
by
unknown
34:01
created

RegexURINormalizer::supportsNormalization()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
namespace eZ\Publish\Core\MVC\Symfony\Component\Serializer;
8
9
use eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex\URI;
10
11
final class RegexURINormalizer extends AbstractPropertyWhitelistNormalizer
12
{
13
    protected function getAllowedProperties()
14
    {
15
        return ['siteAccessesConfiguration'];
16
    }
17
18
    public function supportsNormalization($data, $format = null)
19
    {
20
        return $data instanceof URI;
21
    }
22
}
23