Completed
Pull Request — master (#19)
by
unknown
02:45
created

PropertyDocSniff   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getListenedTokens() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BestIt\Sniffs\Commenting;
6
7
/**
8
 * Class PropertyDocSniff
9
 *
10
 * @package BestIt\Sniffs\Commenting
11
 * @author Nick Lubisch <[email protected]>
12
 */
13
class PropertyDocSniff extends ConstantDocSniff
14
{
15
    /**
16
     * Returns which tokens should be listened to.
17
     *
18
     * @return int[] List of tokens which is to be listened to
19
     */
20 26
    public function getListenedTokens(): array
21
    {
22
        return [
23 26
            T_VARIABLE
24
        ];
25
    }
26
}
27