Completed
Branch EDTR/master (83b47e)
by
unknown
25:37 queued 16:41
created

GutenbergEditorData   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A initialize() 0 4 1
1
<?php
2
3
namespace EventEspresso\core\domain\entities\routing\data_nodes\domains;
4
5
use EventEspresso\core\services\json\JsonDataNode;
6
use EventEspresso\core\services\json\JsonDataNodeValidator;
7
8
/**
9
 * Class GutenbergEditorData
10
 *
11
 * @package EventEspresso\core\domain\entities\routing\data_nodes\domains
12
 * @author  Brent Christensen
13
 * @since   $VID:$
14
 */
15
class GutenbergEditorData extends JsonDataNode
16
{
17
18
    const NODE_NAME = 'blocks';
19
20
21
    /**
22
     * WordPressPluginsPageData JsonDataNode constructor.
23
     *
24
     * @param JsonDataNodeValidator $validator
25
     */
26
    public function __construct(JsonDataNodeValidator $validator)
27
    {
28
        parent::__construct($validator);
29
        $this->setDomain(GutenbergEditorData::NODE_NAME);
30
        $this->setNodeName(GutenbergEditorData::NODE_NAME);
31
    }
32
33
34
    /**
35
     * @inheritDoc
36
     */
37
    public function initialize()
38
    {
39
        $this->addData('BlockName', []);
40
    }
41
}
42