Completed
Branch BUG-10626-dst-unit-test (cc62a6)
by
unknown
37:15 queued 23:58
created

TicketSelector::ticketOptionByEventIdSelector()   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 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Page;
3
4
/**
5
 * TicketSelector
6
 * Selectors/References to elements for the Ticket Selector.
7
 *
8
 * @package Page
9
 * @author  Darren Ethier
10
 * @since   1.0.0
11
 */
12
class TicketSelector
13
{
14
15
    /**
16
     * Return the selector for the ticket option select input for the given event id.
17
     * @param int|string $event_id
18
     * @return string
19
     */
20
    public static function ticketOptionByEventIdSelector($event_id)
21
    {
22
        return "//select[@id='ticket-selector-tbl-qty-slct-$event_id-1']";
23
    }
24
25
26
    /**
27
     * Return the selector for the submit button for the ticket selector for the given event id.
28
     * @param int|string $event_id
29
     * @return string
30
     */
31
    public static function ticketSelectionSubmitSelectorByEventId($event_id)
32
    {
33
        return "#ticket-selector-submit-$event_id-btn";
34
    }
35
}