Completed
Push — master ( 1857e6...d96bec )
by Joao
03:02
created

src/Enum/FixedTextDefinition.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace ByJG\AnyDataset\Enum;
4
5
/**
6
 * @package xmlnuke
7
 */
8
class FixedTextDefinition
9
{
10
11
    public $fieldName;
12
    public $startPos;
13
    public $length;
14
    public $requiredValue;
15
    public $subTypes = array();
16
17
    /**
18
     *
19
     * @param string $fieldName
20
     * @param int $startPos
21
     * @param int $length
22
     * @param bool $requiredValue
23
     * @param array_of_FixedTextDefinition $subTypes
24
     */
25
    public function __construct($fieldName, $startPos, $length, $requiredValue = "", $subTypes = null)
26
    {
27
        $this->fieldName = $fieldName;
28
        $this->startPos = $startPos;
29
        $this->length = $length;
30
        $this->requiredValue = $requiredValue;
31
        $this->subTypes = $subTypes;
0 ignored issues
show
Documentation Bug introduced by
It seems like $subTypes of type object<ByJG\AnyDataset\E...of_FixedTextDefinition> or null is incompatible with the declared type array of property $subTypes.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
32
    }
33
}
34