private function registerAnnotations()
    {
        $annotations = [
            'Document',
            'Property',
            'Embedded',
            'ObjectType',
            'Nested',
            'Id',
            'ParentDocument',
            'Routing',
            'Version',
            'HashMap',
        ];

        foreach ($annotations as $annotation) {
            AnnotationRegistry::registerFile(__DIR__ . "/../Annotation/{$annotation}.php");
        }

        if (version_compare(PHP_VERSION, '7.2.0') < 0) {
            AnnotationRegistry::registerFile(__DIR__ . "/../Annotation/Object.php");
        }
    }
private function registerAnnotations()
    {
        $annotations = [
            'Document',
            'Property',
            'Embedded',
            'ObjectType',
            'Nested',
            'Id',
            'ParentDocument',
            'Routing',
            'Version',
            'HashMap',
        ];

        foreach ($annotations as $annotation) {
            AnnotationRegistry::registerFile(__DIR__ . "/../Annotation/{$annotation}.php");
        }

        if (version_compare(PHP_VERSION, '7.2.0') < 0) {
            AnnotationRegistry::registerFile(__DIR__ . "/../Annotation/Object.php");
        }
    }
private function registerAnnotations ( ) { $ annotations = [ 'Document' , 'Property' , 'Embedded' , 'ObjectType' , 'Nested' , 'Id' , 'ParentDocument' , 'Routing' , 'Version' , 'HashMap' , ] ; foreach ( $ annotations as $ annotation ) { AnnotationRegistry :: registerFile ( __DIR__ . "/../Annotation/{$annotation}.php" ) ; } if ( version_compare ( PHP_VERSION , '7.2.0' ) < 0 ) { AnnotationRegistry :: registerFile ( __DIR__ . "/../Annotation/Object.php" ) ; } }
Registers annotations to registry so that it could be used by reader.
Registers annotations to registry so that it could be used by reader .