RevokeTicketResponse::fromCommand()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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