SuccessStep::success()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * SuccessStep.php
4
 *
5
 * @author Bram de Leeuw
6
 * Date: 29/03/17
7
 */
8
9
10
namespace Broarm\EventTickets;
11
12
use CalendarEvent_Controller;
13
use Extension;
14
15
/**
16
 * Class SuccessStep
17
 * 
18
 * @property TicketControllerExtension|TicketExtension|CalendarEvent_Controller $owner
19
 */
20
class SuccessStep extends Extension
21
{
22
    private static $allowed_actions = array(
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
23
        'success'
24
    );
25
26
    /**
27
     * End at the success step
28
     *
29
     * @return SuccessController
30
     */
31
    public function success()
32
    {
33
        return new SuccessController($this->owner->dataRecord);
34
    }
35
}
36