RevokeTicketResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fromCommand() 0 4 1
1
<?php
2
namespace FloSports\ScaleEngine\Response;
3
4
use Guzzle\Service\Command\OperationCommand;
5
6
/**
7
 * Provides the ability to handle a ScaleEngine RevokeTicket command.
8
 */
9
class RevokeTicketResponse extends AbstractScaleEngineResponse
10
{
11
    /**
12
     * Get the response from the command as a ScaleEngineTicket model.
13
     *
14
     * This takes the command given and  ensures that it has a successful
15
     * response.  Because the revoke API call does not return any data, this
16
     * call does not return an object.
17
     *
18
     * @param OperationCommand $command The RevokeTicket API call made.
19
     * @return void
20
     */
21
    public static function fromCommand(OperationCommand $command)
22
    {
23
        self::getResult($command);
24
    }
25
}
26