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

SingleRegistrationCommand::registration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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