Configuration::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 9
nc 1
nop 4
1
<?php
2
declare(strict_types=1);
3
4
namespace Lookyman\Rundeck\Api;
5
6
use GuzzleHttp\ClientInterface;
7
use Lookyman\Rundeck\Api\Authentication\AuthenticationInterface;
8
use Lookyman\Rundeck\Api\Format\FormatInterface;
9
10
class Configuration
11
{
12
	/**
13
	 * @var ClientInterface
14
	 */
15
	private $guzzle;
16
17
	/**
18
	 * @var string
19
	 */
20
	private $baseUri;
21
22
	/**
23
	 * @var AuthenticationInterface
24
	 */
25
	private $authentication;
26
27
	/**
28
	 * @var FormatInterface
29
	 */
30
	private $format;
31
32
	/**
33
	 * @param ClientInterface $guzzle
34
	 * @param string $baseUri
35
	 * @param AuthenticationInterface $authentication
36
	 * @param FormatInterface $format
37
	 */
38
	public function __construct(
39
		ClientInterface $guzzle,
40
		string $baseUri,
41
		AuthenticationInterface $authentication,
42
		FormatInterface $format
43
	) {
44
		$this->guzzle = $guzzle;
45
		$this->baseUri = $baseUri;
46
		$this->authentication = $authentication;
47
		$this->format = $format;
48
	}
49
50
	/**
51
	 * @return ClientInterface
52
	 */
53
	public function getGuzzle(): ClientInterface
54
	{
55
		return $this->guzzle;
56
	}
57
58
	/**
59
	 * @return string
60
	 */
61
	public function getBaseUri(): string
62
	{
63
		return $this->baseUri;
64
	}
65
66
	/**
67
	 * @return AuthenticationInterface
68
	 */
69
	public function getAuthentication(): AuthenticationInterface
70
	{
71
		return $this->authentication;
72
	}
73
74
	/**
75
	 * @return FormatInterface
76
	 */
77
	public function getFormat(): FormatInterface
78
	{
79
		return $this->format;
80
	}
81
}
82