1 | <?php |
||
14 | final class Schema |
||
15 | { |
||
16 | public const RESOLVER_PROPERTY = '__resolver'; |
||
17 | public const UNSET_PROPERTIES_CONST = '__UNSET_PROPERTIES'; |
||
18 | public const INIT_METHOD = '__init'; |
||
19 | |||
20 | public const INIT_DEPENDENCIES = [ |
||
21 | 'orm' => ORMInterface::class, |
||
22 | 'role' => 'string', |
||
23 | 'scope' => 'array' |
||
24 | ]; |
||
25 | |||
26 | private const USE_STMTS = [ |
||
27 | PromiseInterface::class, |
||
28 | Resolver::class, |
||
29 | ProxyFactoryException::class, |
||
30 | ORMInterface::class |
||
31 | ]; |
||
32 | |||
33 | /** @var ConflictResolver */ |
||
34 | private $resolver; |
||
35 | |||
36 | public function __construct(ConflictResolver $resolver) |
||
40 | |||
41 | public function useStmts(Declaration\DeclarationInterface $class, Declaration\DeclarationInterface $parent): array |
||
50 | |||
51 | public function initMethodName(Declaration\Structure $structure): string |
||
55 | |||
56 | public function resolverPropertyName(Declaration\Structure $structure): string |
||
60 | |||
61 | public function unsetPropertiesConstName(Declaration\Structure $structure): string |
||
65 | |||
66 | public function propertyType(): string |
||
70 | } |