Completed
Push — master ( 193c3c...281dde )
by Nate
07:20
created

Manage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 22
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://github.com/flipboxfactory/craft-ember/blob/master/LICENSE
6
 * @link       https://github.com/flipboxfactory/craft-ember
7
 */
8
9
namespace flipbox\ember\actions\element\traits;
10
11
use craft\base\ElementInterface;
12
use flipbox\ember\actions\traits\Manage as BaseManage;
13
use yii\base\Model;
14
15
/**
16
 * @author Flipbox Factory <[email protected]>
17
 * @since 1.0.0
18
 */
19
trait Manage
20
{
21
    use BaseManage {
22
        runInternal as traitRunInternal;
23
    }
24
25
    /**
26
     * @inheritdoc
27
     * @param ElementInterface $element
28
     */
29
    abstract protected function performAction(ElementInterface $element): bool;
30
31
    /**
32
     * @inheritdoc
33
     * @param ElementInterface $element
34
     * @return Model
35
     */
36
    protected function runInternal(ElementInterface $element)
37
    {
38
        return $this->traitRunInternal($element);
0 ignored issues
show
Bug introduced by
The method traitRunInternal() does not exist on flipbox\ember\actions\element\traits\Manage. Did you maybe mean runInternal()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
39
    }
40
}
41