DonationPayment   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 20
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A setId() 0 3 1
1
<?php
2
declare( strict_types=1 );
3
4
namespace WMDE\Fundraising\Entities;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * @since 6.0
10
 *
11
 * @ORM\Entity
12
 * @ORM\Table(name="donation_payment")
13
 * @ORM\InheritanceType("JOINED")
14
 * @ORM\DiscriminatorColumn(name="payment_type", type="string", length=3)
15
 * @ORM\DiscriminatorMap({"SUB" = "WMDE\Fundraising\Entities\DonationPayments\SofortPayment"})
16
 */
17
abstract class DonationPayment {
18
19
	/**
20
	 * @var integer
21
	 *
22
	 * @ORM\Column(name="id", type="integer")
23
	 * @ORM\GeneratedValue(strategy="IDENTITY")
24
	 * @ORM\Id
25
	 */
26
	private $id;
27
28
	public function getId(): int {
29
		return $this->id;
30
	}
31
32
	public function setId( int $id ): void {
33
		$this->id = $id;
34
	}
35
36
}
37