UpdateEntryCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 31
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Hechoenlaravel\JarvisFoundation\Entries;
4
5
/**
6
 * Class UpdateEntryCommandHandler
7
 * @package Hechoenlaravel\JarvisFoundation\Entries
8
 */
9
class UpdateEntryCommand
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
     * @var
25
     */
26
    public $entry_id;
27
28
    /**
29
     * CreateEntryCommand constructor.
30
     * @param $entity
31
     * @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...
32
     */
33
    public function __construct($entity, $entry_id, array $input)
34
    {
35
        $this->entity = $entity;
36
        $this->entry_id = $entry_id;
37
        $this->input = $input;
38
    }
39
}
40