Completed
Branch Gutenberg/master (a5e5d1)
by
unknown
147:31 queued 134:10
created

CoreBlocksAssetManager   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setAssetHandles() 0 7 1
1
<?php
2
3
namespace EventEspresso\core\domain\entities\editor\blocks;
4
5
use EventEspresso\core\exceptions\InvalidDataTypeException;
6
use EventEspresso\core\exceptions\InvalidEntityException;
7
use EventEspresso\core\services\assets\BlockAssetManager;
8
use EventEspresso\core\services\collections\DuplicateCollectionIdentifierException;
9
10
/**
11
 * Class CoreBlocksAssetManager
12
 * Manages Editor Block Assets for Event Espresso Core
13
 *
14
 * @package EventEspresso\core\domain\entities\editor\blocks
15
 * @author  Brent Christensen
16
 * @since   $VID:$
17
 */
18
class CoreBlocksAssetManager extends BlockAssetManager
19
{
20
    const JS_HANDLE_CORE_BLOCKS = 'core-blocks';
21
    const CSS_HANDLE_CORE_BLOCKS = 'core-blocks';
22
23
    /**
24
     * @since $VID:$
25
     */
26
    public function setAssetHandles()
27
    {
28
        $this->setEditorScriptHandle(self::JS_HANDLE_CORE_BLOCKS);
29
        $this->setEditorStyleHandle(self::CSS_HANDLE_CORE_BLOCKS);
30
        $this->setScriptHandle(self::JS_HANDLE_CORE_BLOCKS);
31
        $this->setStyleHandle(self::CSS_HANDLE_CORE_BLOCKS);
32
    }
33
}
34