Passed
Push — main ( 16e3d2...2668c7 )
by Damien
07:42
created

Rule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DH\Adf\Node\Block;
6
7
use DH\Adf\Node\BlockNode;
8
use JsonSerializable;
9
10
/**
11
 * @see https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/rule
12
 */
13
class Rule extends BlockNode implements JsonSerializable
14
{
15
    protected string $type = 'rule';
16
17
    public function jsonSerialize(): array
18
    {
19
        $result = parent::jsonSerialize();
20
        unset($result['content']);
21
22
        return $result;
23
    }
24
}
25