Completed
Branch FET/11400/gutenberg-block-mana... (713a0a)
by
unknown
45:29 queued 32:15
created

EditorBlock   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace EventEspresso\core\domain\entities\editor;
4
5
6
use EventEspresso\core\services\loaders\LoaderInterface;
7
use WP_Block_Type;
8
9
defined('EVENT_ESPRESSO_VERSION') || exit;
10
11
12
13
/**
14
 * Class EditorBlock
15
 * Registers a Editor block type with WordPress core,
16
 * specifies all assets required for the block,
17
 * and executes all logic as necessary
18
 * ALL blocks should be located in
19
 *  \core\domain\entities\editor\blocks\
20
 * under the appropriate namespace root
21
 *
22
 * @package EventEspresso\core\services\editor
23
 * @author  Brent Christensen
24
 * @since   $VID:$
25
 */
26
abstract class EditorBlock implements EditorBlockInterface
27
{
28
29
    /**
30
     * @var WP_Block_Type $block_type
31
     */
32
    protected $block_type;
33
34
    /**
35
     * @var LoaderInterface $loader
36
     */
37
    protected $loader;
38
39
40
    /**
41
     * EditorBlockLoader constructor.
42
     *
43
     * @param LoaderInterface $loader
44
     */
45
    public function __construct(LoaderInterface $loader)
46
    {
47
        $this->loader = $loader;
48
    }
49
}
50