Product   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getId() 0 4 1
1
<?php
2
3
namespace Predictator\AssociationRule;
4
5
6
class Product implements ProductInterface
7
{
8
	/**
9
	 * @var string
10
	 */
11
	private $itemId;
12
13
	/**
14
	 * @param string $itemId
15
	 */
16
	public function __construct(string $itemId)
17
	{
18
		$this->itemId = $itemId;
19
	}
20
21
	/**
22
	 * @return string
23
	 */
24
	public function getId(): string
25
	{
26
		return $this->itemId;
27
	}
28
}