-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
profile.php
44 lines (38 loc) · 1.97 KB
/
profile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
declare(strict_types=1);
use Crell\AttributeUtils\Analyzer;
use Crell\AttributeUtils\Attributes\BasicClass;
use Crell\AttributeUtils\Attributes\ClassWithProperties;
use Crell\AttributeUtils\Attributes\ClassWithPropertiesWithSubAttributes;
use Crell\AttributeUtils\Attributes\ClassWithReflection;
use Crell\AttributeUtils\Attributes\GenericClass;
use Crell\AttributeUtils\Attributes\InheritableClassAttributeMain;
use Crell\AttributeUtils\MemoryCacheAnalyzer;
use Crell\AttributeUtils\Records\AttributesInheritChild;
use Crell\AttributeUtils\Records\ClassWithCustomizedFields;
use Crell\AttributeUtils\Records\ClassWithCustomizedPropertiesExcludeByDefault;
use Crell\AttributeUtils\Records\ClassWithDefaultFields;
use Crell\AttributeUtils\Records\ClassWithPropertiesWithReflection;
use Crell\AttributeUtils\Records\ClassWithSubAttributes;
use Crell\AttributeUtils\Records\NoProps;
use Crell\AttributeUtils\Records\NoPropsOverride;
use Crell\AttributeUtils\Records\Point;
use Crell\AttributeUtils\Records\TransitiveFieldClass;
require 'vendor/autoload.php';
function run(): void
{
$analyzer = new MemoryCacheAnalyzer(new Analyzer());
$analyzer->analyze(Point::class, BasicClass::class);
$analyzer->analyze(NoProps::class, ClassWithReflection::class);
$analyzer->analyze(NoPropsOverride::class, ClassWithReflection::class);
$analyzer->analyze(ClassWithDefaultFields::class, ClassWithProperties::class);
$analyzer->analyze(ClassWithCustomizedFields::class, ClassWithProperties::class);
$analyzer->analyze(ClassWithCustomizedPropertiesExcludeByDefault::class, ClassWithProperties::class);
$analyzer->analyze(ClassWithPropertiesWithReflection::class, GenericClass::class);
$analyzer->analyze(ClassWithSubAttributes::class, ClassWithPropertiesWithSubAttributes::class);
$analyzer->analyze(AttributesInheritChild::class, InheritableClassAttributeMain::class);
$analyzer->analyze(TransitiveFieldClass::class, GenericClass::class);
}
for ($i=0; $i < 100; ++$i) {
run();
}