Completed
Branch BUG-10381-asset-loading (361215)
by
unknown
158:58 queued 146:07
created

TicketSelectorRowSimple   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setupTicketStatusDisplay() 0 6 1
1
<?php
2
namespace EventEspresso\modules\ticket_selector;
3
4
use EE_Error;
5
6
defined('EVENT_ESPRESSO_VERSION') || exit;
7
8
9
10
/**
11
 * Class TicketSelectorRowSimple
12
 * class for loading template and resolving template args for the ticket row within a "DWMTS" ticket selector
13
 *
14
 * @package       Event Espresso
15
 * @author        Brent Christensen
16
 * @since         $VID:$
17
 */
18
class TicketSelectorRowSimple extends TicketSelectorRow
19
{
20
21
    /**
22
     * @throws EE_Error
23
     */
24
    public function setupTicketStatusDisplay()
25
    {
26
        $remaining = $this->ticket->remaining();
27
        list($tkt_status, $ticket_status) = $this->getTicketStatusClasses($remaining);
28
        $this->setTicketStatusDisplay($tkt_status, $ticket_status, $remaining);
29
    }
30
31
32
33
}
34
// End of file TicketSelectorRowSimple.php
35
// Location: EventEspresso\modules\ticket_selector/TicketSelectorRowSimple.php