SubstringLocation   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 21
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getOffset() 0 4 1
A getLength() 0 4 1
1
<?php
2
3
namespace itertools;
4
5
6
class SubstringLocation
7
{
8
	protected $offset;
9
	protected $length;
10
11
	public function __construct($offset, $length)
12
	{
13
		$this->offset = $offset;
14
		$this->length = $length;
15
	}
16
17
 	public function getOffset()
18
 	{
19
 		return $this->offset;
20
 	}
21
22
 	public function getLength()
23
 	{
24
 		return $this->length;
25
 	}
26
}
27
 
28