Passed
Push — main ( fe5adf...e99a91 )
by Thierry
01:50
created

AfterAnnotation::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * AfterAnnotation.php
5
 *
6
 * Jaxon annotation for callbacks.
7
 *
8
 * @package jaxon-annotations
9
 * @author Thierry Feuzeu <[email protected]>
10
 * @copyright 2022 Thierry Feuzeu <[email protected]>
11
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
12
 * @link https://github.com/jaxon-php/jaxon-annotations
13
 */
14
15
namespace Jaxon\Annotations\Annotation;
16
17
/**
18
 * Specifies a method to be called after the one targeted by a Jaxon request.
19
 *
20
 * @usage('class' => true, 'method'=>true, 'multiple'=>true, 'inherited'=>true)
21
 */
22
class AfterAnnotation extends CallbackAnnotation
23
{
24
    /**
25
     * @inheritDoc
26
     */
27
    protected static function getType(): string
28
    {
29
        return 'after';
30
    }
31
}
32