CreateEntryCommand::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Hechoenlaravel\JarvisFoundation\Entries;
4
5
/**
6
 * Class CreateEntryCommand
7
 * @package Hechoenlaravel\JarvisFoundation\Entries
8
 */
9
class CreateEntryCommand
10
{
11
    /**
12
     * The Entity
13
     * @var
14
     */
15
    public $entity;
16
17
    /**
18
     * The data to be stored
19
     * @var array
20
     */
21
    public $input = [];
22
23
    /**
24
     * CreateEntryCommand constructor.
25
     * @param $entity
26
     * @param array $data
0 ignored issues
show
Bug introduced by
There is no parameter named $data. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
27
     */
28
    public function __construct($entity, array $input)
29
    {
30
        $this->entity = $entity;
31
        $this->input = $input;
32
    }
33
}
34