Completed
Push — ezp-30616 ( 9239a0...7bf8e8 )
by
unknown
57:53 queued 37:56
created

NullSlotFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSlot() 0 4 1
1
<?php
2
3
/**
4
 * File containing the NullSlotFactory class.
5
 *
6
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
7
 * @license For full copyright and license information view LICENSE file distributed with this source code.
8
 */
9
namespace eZ\Publish\Core\SignalSlot\SlotFactory;
10
11
use eZ\Publish\Core\SignalSlot\SlotFactory;
12
use RuntimeException;
13
14
class NullSlotFactory extends SlotFactory
15
{
16
    /**
17
     * Returns a Slot with the given $slotIdentifier.
18
     *
19
     * @param string $slotIdentifier
20
     *
21
     * @return \eZ\Publish\Core\SignalSlot\Slot
22
     */
23
    public function getSlot($slotIdentifier)
24
    {
25
        throw new RuntimeException('Slot creation not supported.');
26
    }
27
}
28