Completed
Push — master ( 8f168b...4b1795 )
by Dieter
09:49
created

Ticket::createTicketCreateTSTFromPricing()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * amadeus-ws-client
4
 *
5
 * Copyright 2015 Amadeus Benelux NV
6
 *
7
 * Licensed under the Apache License, Version 2.0 (the "License");
8
 * you may not use this file except in compliance with the License.
9
 * You may obtain a copy of the License at
10
 *
11
 * http://www.apache.org/licenses/LICENSE-2.0
12
 *
13
 * Unless required by applicable law or agreed to in writing, software
14
 * distributed under the License is distributed on an "AS IS" BASIS,
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
18
 *
19
 * @package Amadeus
20
 * @license https://opensource.org/licenses/Apache-2.0 Apache 2.0
21
 */
22
23
namespace Amadeus\Client\RequestCreator;
24
25
use Amadeus\Client\RequestOptions\TicketCreateTsmFromPricingOptions;
26
use Amadeus\Client\RequestOptions\TicketCreateTstFromPricingOptions;
27
use Amadeus\Client\RequestOptions\TicketDeleteTstOptions;
28
use Amadeus\Client\RequestOptions\TicketDisplayTstOptions;
29
use Amadeus\Client\Struct;
30
31
/**
32
 * Ticket
33
 *
34
 * @package Amadeus\Client\RequestCreator
35
 * @author Dieter Devlieghere <[email protected]>
36
 */
37
class Ticket
38
{
39
    /**
40
     * Ticket_CreateTstFromPricing
41
     *
42
     * @param TicketCreateTstFromPricingOptions $params
43
     * @return Struct\Ticket\CreateTSTFromPricing
44
     */
45 1
    public function createTicketCreateTSTFromPricing(TicketCreateTstFromPricingOptions $params)
46
    {
47 1
        return new Struct\Ticket\CreateTSTFromPricing($params);
48
    }
49
50
    /**
51
     * Ticket_CreateTSMFromPricing
52
     *
53
     * @param TicketCreateTsmFromPricingOptions $params
54
     * @return Struct\Ticket\CreateTSMFromPricing
55
     */
56 1
    public function createTicketCreateTSMFromPricing(TicketCreateTsmFromPricingOptions $params)
57
    {
58 1
        return new Struct\Ticket\CreateTSMFromPricing($params);
59
    }
60
61
    /**
62
     * Ticket_DeleteTST
63
     *
64
     * @param TicketDeleteTstOptions $params
65
     * @return Struct\Ticket\DeleteTST
66
     */
67 1
    public function createTicketDeleteTST(TicketDeleteTstOptions $params)
68
    {
69 1
        return new Struct\Ticket\DeleteTST($params);
70
    }
71
72
    /**
73
     * Ticket_DisplayTST
74
     *
75
     * @param TicketDisplayTstOptions $params
76
     * @return Struct\Ticket\DisplayTST
77
     */
78 1
    public function createTicketDisplayTST(TicketDisplayTstOptions $params)
79
    {
80 1
        return new Struct\Ticket\DisplayTST($params);
81
    }
82
}
83