Completed
Branch FET-9795-new-interfaces (ea072c)
by
unknown
296:38 queued 279:44
created

SingleRegistrationCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 33
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A registration() 0 4 1
1
<?php
2
namespace EventEspresso\core\services\commands\registration;
3
4
use EventEspresso\core\services\commands\Command;
5
6
if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
7
	exit( 'No direct script access allowed' );
8
}
9
10
11
12
/**
13
 * Class SingleRegistrationCommand
14
 * DTO for passing data a single EE_Registration object to a CommandHandler
15
 *
16
 * @package       Event Espresso
17
 * @author        Brent Christensen
18
 * @since         4.9.0
19
 */
20
abstract class SingleRegistrationCommand extends Command
21
{
22
23
24
	/**
25
	 * @var \EE_Registration $registration
26
	 */
27
	private $registration;
28
29
30
31
	/**
32
	 * CancelRegistrationAndTicketLineItemCommand constructor.
33
	 *
34
	 * @param \EE_Registration    $registration
35
	 */
36
	public function __construct(
37
		\EE_Registration $registration
38
	) {
39
		$this->registration = $registration;
40
	}
41
42
43
44
	/**
45
	 * @return \EE_Registration
46
	 */
47
	public function registration()
48
	{
49
		return $this->registration;
50
	}
51
52
}
53
// End of file SingleRegistrationCommand.php
54
// Location: /SingleRegistrationCommand.php