Barcode   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A barcode() 0 3 1
1
<?php
2
3
4
namespace Dolibarr\Client\Domain\Common;
5
6
/**
7
 * @package Dolibarr\Client\Domain\Common
8
 */
9
final class Barcode
10
{
11
12
    /**
13
     * @var string
14
     */
15
    private $value;
16
17
    /**
18
     * @param string $value
19
     */
20
    public function __construct($value)
21
    {
22
        $this->value = $value;
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    public function barcode()
29
    {
30
        return $this->value;
31
    }
32
}
33