1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Sync\Support; |
4: | |
5: | use Salient\Contract\Sync\SyncEntityInterface; |
6: | use Salient\Contract\Sync\SyncProviderInterface; |
7: | use Salient\Core\IntrospectionClass; |
8: | use Closure; |
9: | |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | final class SyncIntrospectionClass extends IntrospectionClass |
18: | { |
19: | |
20: | public $IsSyncEntity; |
21: | |
22: | public $IsSyncProvider; |
23: | |
24: | |
25: | |
26: | |
27: | |
28: | |
29: | public $CreateFromSignatureSyncClosures = []; |
30: | |
31: | |
32: | |
33: | |
34: | |
35: | |
36: | public $CreateSyncEntityFromSignatureClosures = []; |
37: | |
38: | |
39: | |
40: | |
41: | |
42: | |
43: | public $CreateSyncEntityFromClosures = []; |
44: | |
45: | |
46: | |
47: | |
48: | |
49: | |
50: | public $MagicSyncOperationClosures = []; |
51: | |
52: | |
53: | |
54: | |
55: | public function __construct(string $class) |
56: | { |
57: | parent::__construct($class); |
58: | |
59: | $class = $this->Reflector; |
60: | $this->IsSyncEntity = $class->implementsInterface(SyncEntityInterface::class); |
61: | $this->IsSyncProvider = $class->implementsInterface(SyncProviderInterface::class); |
62: | } |
63: | } |
64: | |