AnnotationPackager   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
c 2
b 0
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
/**
4
 * This file is part of Blitz PHP framework.
5
 *
6
 * (c) 2022 Dimitri Sitchet Tomkeu <[email protected]>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 */
11
12
namespace BlitzPHP\Annotations;
13
14
use BlitzPHP\Annotations\Http\AjaxOnlyAnnotation;
15
use BlitzPHP\Annotations\Http\RequestMappingAnnotation;
16
use BlitzPHP\Annotations\Validation\RangeAnnotation;
17
use BlitzPHP\Annotations\Validation\RequiredAnnotation;
18
use mindplay\annotations\AnnotationManager;
19
20
abstract class AnnotationPackager
21
{
22
    public static function register(AnnotationManager $annotationManager)
23
    {
24
        $annotationManager->registry['ajaxOnly']       = AjaxOnlyAnnotation::class;
25
        $annotationManager->registry['range']          = RangeAnnotation::class;
26
        $annotationManager->registry['requestMapping'] = RequestMappingAnnotation::class;
27
        $annotationManager->registry['required']       = RequiredAnnotation::class;
28
    }
29
}
30