Environment::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php namespace SOSTheBlack\Moip;
2
3
class Environment {
4
	/**
5
	 * base url
6
	 * 
7
	 * @var string
8
	 */
9
	public $base_url;
10
11
	/**
12
	 * name of environment, sandbox or production
13
	 * 
14
	 * @var string
15
	 */
16
	public $name;
17
18
	/**
19
	 * __construct()
20
	 * 
21
	 * @param string $base_url 
22
	 * @param string $name 
23
	 * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
24
	 */
25
	function __construct($base_url = '', $name = '')
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
26
	{
27
		$this->base_url = $base_url;
28
		$this->name = $name;
29
	}
30
}