Completed
Push — master ( 247b53...16b162 )
by Jeroen De
03:24
created

ImageValueObject::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 3
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace Maps\Tests\TestDoubles;
6
7
use Maps\DataAccess\Image;
8
9
class ImageValueObject implements Image {
10
11
	private $url;
12
	private $widthInPx;
13
	private $heightInPx;
14
15
	public function __construct( string $url, int $widthInPx, int $heightInPx ) {
16
		$this->url = $url;
17
		$this->widthInPx = $widthInPx;
18
		$this->heightInPx = $heightInPx;
19
	}
20
21
	public function getUrl(): string {
22
		return $this->url;
23
	}
24
25
	public function getWidthInPx(): int {
26
		return $this->widthInPx;
27
	}
28
29
	public function getHeightInPx(): int {
30
		return $this->heightInPx;
31
	}
32
33
}
34