TicketStore   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 27
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
/*
4
 *    simpleSAMLphp-casserver is a CAS 1.0 and 2.0 compliant CAS server in the form of a simpleSAMLphp module
5
 *
6
 *    Copyright (C) 2013  Bjorn R. Jensen
7
 *
8
 *    This library is free software; you can redistribute it and/or
9
 *    modify it under the terms of the GNU Lesser General Public
10
 *    License as published by the Free Software Foundation; either
11
 *    version 2.1 of the License, or (at your option) any later version.
12
 *
13
 *    This library is distributed in the hope that it will be useful,
14
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
 *    Lesser General Public License for more details.
17
 *
18
 *    You should have received a copy of the GNU Lesser General Public
19
 *    License along with this library; if not, write to the Free Software
20
 *    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
 *
22
 */
23
24
declare(strict_types=1);
25
26
namespace SimpleSAML\Module\casserver\Cas\Ticket;
27
28
use SimpleSAML\Configuration;
29
30
abstract class TicketStore
31
{
32
    /**
33
     * @param \SimpleSAML\Configuration $config
34
     */
35
    public function __construct(Configuration $config)
36
    {
37
    }
38
39
40
    /**
41
     * @param string $ticketId
42
     * @return array|null The ticket content or null if there is no such ticket
43
     */
44
    abstract public function getTicket(string $ticketId): ?array;
45
46
47
    /**
48
     * @param array $ticket
49
     */
50
    abstract public function addTicket(array $ticket): void;
51
52
53
    /**
54
     * @param string $ticketId
55
     */
56
    abstract public function deleteTicket(string $ticketId): void;
57
}
58