66use SimpleSAML \Error \BadRequest ;
77use SimpleSAML \Logger ;
88use SimpleSAML \Module ;
9+ use SimpleSAML \Module \casserver \Cas \CasException ;
910use SimpleSAML \Module \casserver \Cas \Ticket \TicketFactory ;
1011use SimpleSAML \Module \casserver \Cas \Ticket \TicketStore ;
1112
1213class TicketValidator
1314{
14- /** @var Configuration */
15+ /** @var \SimpleSAML\ Configuration */
1516 private $ casconfig ;
1617
17- /** @var TicketStore */
18+ /** @var \SimpleSAML\Module\casserver\Cas\Ticket\ TicketStore */
1819 private $ ticketStore ;
1920
20- /** @var TicketFactory */
21+ /** @var \SimpleSAML\Module\casserver\Cas\Ticket\ TicketFactory */
2122 private $ ticketFactory ;
2223
2324 /**
@@ -28,19 +29,23 @@ class TicketValidator
2829
2930 /**
3031 * TicketValidator constructor.
31- * @param Configuration $casconfig
32+ * @param \SimpleSAML\ Configuration $casconfig
3233 */
3334 public function __construct (Configuration $ casconfig )
3435 {
3536 $ this ->casconfig = $ casconfig ;
3637 $ ticketStoreConfig = $ casconfig ->getValue ('ticketstore ' , ['class ' => 'casserver:FileSystemTicketStore ' ]);
3738 $ ticketStoreClass = Module::resolveClass ($ ticketStoreConfig ['class ' ], 'Cas_Ticket ' );
38- /** @var TicketStore $ticketStore */
39- /** @psalm-suppress InvalidStringClass */
39+ /**
40+ * @psalm-suppress InvalidStringClass
41+ * @var \SimpleSAML\Module\casserver\Cas\Ticket\TicketStore
42+ */
4043 $ this ->ticketStore = new $ ticketStoreClass ($ casconfig );
4144 $ ticketFactoryClass = Module::resolveClass ('casserver:TicketFactory ' , 'Cas_Ticket ' );
42- /** @var $ticketFactory TicketFactory */
43- /** @psalm-suppress InvalidStringClass */
45+ /**
46+ * @psalm-suppress InvalidStringClass
47+ * @var \SimpleSAML\Module\casserver\Cas\Ticket\TicketFactory
48+ */
4449 $ this ->ticketFactory = new $ ticketFactoryClass ($ casconfig );
4550 }
4651
@@ -49,7 +54,7 @@ public function __construct(Configuration $casconfig)
4954 * @param string $ticket the ticket id to load validate
5055 * @param string $service the service that the ticket was issued to
5156 * @return string|array|null
52- * @throws CasException Thrown if ticket doesn't exist, expired, service mismatch
57+ * @throws \SimpleSAML\Module\casserver\Cas\ CasException Thrown if ticket doesn't exist, expired, service mismatch
5358 * @throws \InvalidArgumentException thrown if $ticket or $service parameter is missing
5459 */
5560 public function validateAndDeleteTicket ($ ticket , $ service )
0 commit comments