Skip to content

Commit 7cf0470

Browse files
committed
Reorganize property accessor and class instantiator
1 parent ec9bc61 commit 7cf0470

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

src/Type/ClassType/ClassInstantiator/ClassInstantiatorInterface.php renamed to src/Runtime/ClassInstantiator/ClassInstantiatorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace TypeLang\Mapper\Type\ClassType\ClassInstantiator;
5+
namespace TypeLang\Mapper\Runtime\ClassInstantiator;
66

77
use TypeLang\Mapper\Exception\Mapping\NonInstantiatableObjectException;
88
use TypeLang\Mapper\Mapping\Metadata\ClassMetadata;

src/Type/ClassType/ClassInstantiator/ReflectionClassInstantiator.php renamed to src/Runtime/ClassInstantiator/ReflectionClassInstantiator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace TypeLang\Mapper\Type\ClassType\ClassInstantiator;
5+
namespace TypeLang\Mapper\Runtime\ClassInstantiator;
66

77
use TypeLang\Mapper\Exception\Mapping\NonInstantiatableObjectException;
88
use TypeLang\Mapper\Mapping\Metadata\ClassMetadata;

src/Type/ClassType/PropertyAccessor/NullPropertyAccessor.php renamed to src/Runtime/PropertyAccessor/NullPropertyAccessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace TypeLang\Mapper\Type\ClassType\PropertyAccessor;
5+
namespace TypeLang\Mapper\Runtime\PropertyAccessor;
66

77
class NullPropertyAccessor implements PropertyAccessorInterface
88
{

src/Type/ClassType/PropertyAccessor/PropertyAccessorInterface.php renamed to src/Runtime/PropertyAccessor/PropertyAccessorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace TypeLang\Mapper\Type\ClassType\PropertyAccessor;
5+
namespace TypeLang\Mapper\Runtime\PropertyAccessor;
66

77
interface PropertyAccessorInterface
88
{

src/Type/ClassType/PropertyAccessor/ReflectionPropertyAccessor.php renamed to src/Runtime/PropertyAccessor/ReflectionPropertyAccessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace TypeLang\Mapper\Type\ClassType\PropertyAccessor;
5+
namespace TypeLang\Mapper\Runtime\PropertyAccessor;
66

77
final class ReflectionPropertyAccessor implements PropertyAccessorInterface
88
{

src/Type/Builder/ClassTypeBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
use TypeLang\Mapper\Mapping\Driver\DriverInterface;
88
use TypeLang\Mapper\Mapping\Driver\ReflectionDriver;
9+
use TypeLang\Mapper\Runtime\ClassInstantiator\ClassInstantiatorInterface;
10+
use TypeLang\Mapper\Runtime\ClassInstantiator\ReflectionClassInstantiator;
911
use TypeLang\Mapper\Runtime\Parser\TypeParserInterface;
12+
use TypeLang\Mapper\Runtime\PropertyAccessor\PropertyAccessorInterface;
13+
use TypeLang\Mapper\Runtime\PropertyAccessor\ReflectionPropertyAccessor;
1014
use TypeLang\Mapper\Runtime\Repository\TypeRepositoryInterface;
1115
use TypeLang\Mapper\Type\ClassType;
12-
use TypeLang\Mapper\Type\ClassType\ClassInstantiator\ClassInstantiatorInterface;
13-
use TypeLang\Mapper\Type\ClassType\ClassInstantiator\ReflectionClassInstantiator;
14-
use TypeLang\Mapper\Type\ClassType\PropertyAccessor\PropertyAccessorInterface;
15-
use TypeLang\Mapper\Type\ClassType\PropertyAccessor\ReflectionPropertyAccessor;
1616
use TypeLang\Parser\Node\Stmt\NamedTypeNode;
1717
use TypeLang\Parser\Node\Stmt\TypeStatement;
1818

src/Type/ClassType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
namespace TypeLang\Mapper\Type;
66

77
use TypeLang\Mapper\Mapping\Metadata\ClassMetadata;
8-
use TypeLang\Mapper\Type\ClassType\ClassInstantiator\ClassInstantiatorInterface;
8+
use TypeLang\Mapper\Runtime\ClassInstantiator\ClassInstantiatorInterface;
9+
use TypeLang\Mapper\Runtime\PropertyAccessor\PropertyAccessorInterface;
910
use TypeLang\Mapper\Type\ClassType\ClassTypeDenormalizer;
1011
use TypeLang\Mapper\Type\ClassType\ClassTypeNormalizer;
11-
use TypeLang\Mapper\Type\ClassType\PropertyAccessor\PropertyAccessorInterface;
1212

1313
/**
1414
* @template T of object

src/Type/ClassType/ClassTypeDenormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
use TypeLang\Mapper\Mapping\Metadata\ClassMetadata;
1313
use TypeLang\Mapper\Mapping\Metadata\DiscriminatorMapMetadata;
1414
use TypeLang\Mapper\Mapping\Metadata\PropertyMetadata;
15+
use TypeLang\Mapper\Runtime\ClassInstantiator\ClassInstantiatorInterface;
1516
use TypeLang\Mapper\Runtime\Context;
1617
use TypeLang\Mapper\Runtime\Path\Entry\ObjectEntry;
1718
use TypeLang\Mapper\Runtime\Path\Entry\ObjectPropertyEntry;
18-
use TypeLang\Mapper\Type\ClassType\ClassInstantiator\ClassInstantiatorInterface;
19-
use TypeLang\Mapper\Type\ClassType\PropertyAccessor\PropertyAccessorInterface;
19+
use TypeLang\Mapper\Runtime\PropertyAccessor\PropertyAccessorInterface;
2020
use TypeLang\Mapper\Type\TypeInterface;
2121

2222
/**

src/Type/ClassType/ClassTypeNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use TypeLang\Mapper\Runtime\Context;
1212
use TypeLang\Mapper\Runtime\Path\Entry\ObjectEntry;
1313
use TypeLang\Mapper\Runtime\Path\Entry\ObjectPropertyEntry;
14-
use TypeLang\Mapper\Type\ClassType\PropertyAccessor\PropertyAccessorInterface;
14+
use TypeLang\Mapper\Runtime\PropertyAccessor\PropertyAccessorInterface;
1515
use TypeLang\Mapper\Type\TypeInterface;
1616

1717
/**

0 commit comments

Comments
 (0)