Passed
Push — master ( d917f3...9bdfff )
by Jesse
02:48
created

TriedOpeningAccountForUnknownEntity::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php declare(strict_types=1);
0 ignored issues
show
Coding Style introduced by
Class found in ".php" file; use ".inc" extension instead
Loading history...
Coding Style introduced by
This file is missing a doc comment.
Loading history...
Coding Style introduced by
The PHP open tag does not have a corresponding PHP close tag
Loading history...
Coding Style introduced by
Filename "TriedOpeningAccountForUnknownEntity.php" doesn't match the expected filename "triedopeningaccountforunknownentity.php"
Loading history...
introduced by
The PHP open tag must be followed by exactly one blank line
Loading history...
introduced by
Expected 1 space before "="; 0 found
Loading history...
introduced by
Expected 1 space after "="; 0 found
Loading history...
2
3
namespace Stratadox\CardGame\Account;
4
5
use Stratadox\CardGame\CorrelationId;
6
use Stratadox\CardGame\RefusalEvent;
7
8
final class TriedOpeningAccountForUnknownEntity implements RefusalEvent
0 ignored issues
show
Coding Style Documentation introduced by
Missing doc comment for class TriedOpeningAccountForUnknownEntity
Loading history...
introduced by
Missing class doc comment
Loading history...
9
{
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration for class TriedOpeningAccountForUnknownEntity
Loading history...
introduced by
Opening brace should be on the same line as the declaration
Loading history...
10
    private $correlationId;
0 ignored issues
show
Coding Style introduced by
Expected 1 blank line(s) before first member var; 0 found
Loading history...
Coding Style introduced by
Private member variable "correlationId" must contain a leading underscore
Loading history...
Coding Style Documentation introduced by
Missing member variable doc comment
Loading history...
Coding Style introduced by
Private member variable "correlationId" must be prefixed with an underscore
Loading history...
11
12
    public function __construct(CorrelationId $correlationId)
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function __construct()
Loading history...
introduced by
Missing function doc comment
Loading history...
13
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
14
        $this->correlationId = $correlationId;
15
    }
0 ignored issues
show
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
16
17
    public function aggregateId(): CorrelationId
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function aggregateId()
Loading history...
introduced by
Missing function doc comment
Loading history...
18
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
19
        return $this->correlationId;
20
    }
0 ignored issues
show
Coding Style introduced by
Expected 1 blank line after function; 0 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
21
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
22