1 | <?php |
||
4 | trait EnumerationTrait |
||
5 | { |
||
6 | /** |
||
7 | * @Exclude |
||
8 | * @var array Defines a list of acceptable values |
||
9 | */ |
||
10 | private $enumeration = null; |
||
11 | |||
12 | /** |
||
13 | * @param array $enumerationValues Defines a list of acceptable values |
||
14 | */ |
||
15 | protected function setEnumeration(array $enumerationValues) |
||
19 | |||
20 | /** |
||
21 | * @param string $enumerationValue adds a value to the enumeration set |
||
22 | */ |
||
23 | protected function addEnumeration($enumerationValue) |
||
30 | /** |
||
31 | * @param string $enumerationValue adds a value to the enumeration set |
||
32 | */ |
||
33 | private function handleAddArray($enumerationValue) |
||
43 | |||
44 | |||
45 | private function checkEnumeration($v) |
||
54 | } |
||
55 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.