BookView   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
c 3
b 0
f 0
lcom 0
cbo 0
dl 0
loc 25
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Clearcode\EHLibrary\Application\Projection;
4
5
final class BookView
6
{
7
    /** @var string */
8
    public $bookId;
9
    /** @var string */
10
    public $title;
11
    /** @var string */
12
    public $authors;
13
    /** @var string */
14
    public $isbn;
15
16
    /**
17
     * @param string $bookId
18
     * @param string $title
19
     * @param string $authors
20
     * @param string $isbn
21
     */
22
    public function __construct($bookId, $title, $authors, $isbn)
23
    {
24
        $this->bookId  = $bookId;
25
        $this->title   = $title;
26
        $this->authors = $authors;
27
        $this->isbn    = $isbn;
28
    }
29
}
30