Invoice::__toString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Invoice
4
 *
5
 * @author    Pronamic <[email protected]>
6
 * @copyright 2005-2022 Pronamic
7
 * @license   GPL-3.0-or-later
8
 * @package   Pronamic\WordPress\Pay\Payments
9
 */
10
11
namespace Pronamic\WordPress\Pay\Gateways\Sisow;
12
13
/**
14
 * Title: Sisow invoice
15
 * Description:
16
 * Copyright: 2005-2022 Pronamic
17
 * Company: Pronamic
18
 *
19
 * @author  Reüel van der Steege
20
 * @version 2.0.1
21
 * @since   2.0.1
22
 */
23
class Invoice {
24
	/**
25
	 * Invoice number.
26
	 *
27
	 * @var string
28
	 */
29
	public $invoiceno;
30
31
	/**
32
	 * Document ID.
33
	 *
34
	 * @var string
35
	 */
36
	public $documentid;
37
38
	/**
39
	 * Create an string representation of this object
40
	 *
41
	 * @return string
42
	 */
43
	public function __toString() {
44
		return implode(
45
			' ',
46
			array(
47
				$this->invoiceno,
48
				$this->documentid,
49
			)
50
		);
51
	}
52
}
53