TakeAction   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
1
<?php
2
3
namespace App\Adventure\InputActions;
4
5
/**
6
 * TakeAction implements InputActionInterface.
7
 * It represents the action that allows the player to take items.
8
 */
9
class TakeAction implements InputActionInterface
10
{
11
    use InputActionTrait;
12
13
    /**
14
     * Retrieves the name for the take action.
15
     *
16
     * @return string The name for the take action.
17
     */
18 1
    public function getName(): string
19
    {
20 1
        return 'take';
21
    }
22
}
23