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

setupTicketStatusDisplay()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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