|
24 | 24 | */ |
25 | 25 | final class DefaultTypeRepositoryFactory implements TypeRepositoryFactoryInterface |
26 | 26 | { |
27 | | - public const DEFAULT_TRACING_OPTION = false; |
28 | | - public const DEFAULT_TYPE_CAST_TRACING_OPTION = true; |
29 | | - public const DEFAULT_TYPE_MATCH_TRACING_OPTION = false; |
| 27 | + /** |
| 28 | + * Default value for {@see DefaultTypeRepositoryFactory::$enableLogging} |
| 29 | + */ |
30 | 30 | public const DEFAULT_LOGGING_OPTION = false; |
31 | | - public const DEFAULT_TYPE_CAST_LOGGING_OPTION = false; |
| 31 | + |
| 32 | + /** |
| 33 | + * Default value for {@see DefaultTypeRepositoryFactory::$enableTypeMatchLogging} |
| 34 | + */ |
32 | 35 | public const DEFAULT_TYPE_MATCH_LOGGING_OPTION = true; |
| 36 | + |
| 37 | + /** |
| 38 | + * Default value for {@see DefaultTypeRepositoryFactory::$enableTypeCastLogging} |
| 39 | + */ |
| 40 | + public const DEFAULT_TYPE_CAST_LOGGING_OPTION = false; |
| 41 | + |
| 42 | + /** |
| 43 | + * Default value for {@see DefaultTypeRepositoryFactory::$enableTracing} |
| 44 | + */ |
| 45 | + public const DEFAULT_TRACING_OPTION = false; |
| 46 | + |
| 47 | + /** |
| 48 | + * Default value for {@see DefaultTypeRepositoryFactory::$enableTypeMatchTracing} |
| 49 | + */ |
| 50 | + public const DEFAULT_TYPE_MATCH_TRACING_OPTION = false; |
| 51 | + |
| 52 | + /** |
| 53 | + * Default value for {@see DefaultTypeRepositoryFactory::$enableTypeCastTracing} |
| 54 | + */ |
| 55 | + public const DEFAULT_TYPE_CAST_TRACING_OPTION = true; |
| 56 | + |
| 57 | + /** |
| 58 | + * Default value for {@see DefaultTypeRepositoryFactory::$enableMemoization} |
| 59 | + */ |
33 | 60 | public const DEFAULT_MEMOIZATION_OPTION = true; |
34 | 61 |
|
35 | 62 | public function __construct( |
| 63 | + /** |
| 64 | + * Enables or disables logging of type retrieval from the repository |
| 65 | + */ |
36 | 66 | private readonly bool $enableLogging = self::DEFAULT_LOGGING_OPTION, |
| 67 | + /** |
| 68 | + * Enables or disables logging of type matching processes |
| 69 | + */ |
37 | 70 | private readonly bool $enableTypeMatchLogging = self::DEFAULT_TYPE_MATCH_TRACING_OPTION, |
| 71 | + /** |
| 72 | + * Enables or disables logging of type casting processes |
| 73 | + */ |
38 | 74 | private readonly bool $enableTypeCastLogging = self::DEFAULT_TYPE_CAST_TRACING_OPTION, |
| 75 | + /** |
| 76 | + * Enables or disables tracing of type retrieval from the repository |
| 77 | + */ |
39 | 78 | private readonly bool $enableTracing = self::DEFAULT_TRACING_OPTION, |
| 79 | + /** |
| 80 | + * Enables or disables tracing of type matching processes |
| 81 | + */ |
40 | 82 | private readonly bool $enableTypeMatchTracing = self::DEFAULT_TYPE_MATCH_LOGGING_OPTION, |
| 83 | + /** |
| 84 | + * Enables or disables tracing of type casting processes |
| 85 | + */ |
41 | 86 | private readonly bool $enableTypeCastTracing = self::DEFAULT_TYPE_CAST_LOGGING_OPTION, |
| 87 | + /** |
| 88 | + * Enables or disables storing types in memory for quick retrieval |
| 89 | + */ |
42 | 90 | private readonly bool $enableMemoization = self::DEFAULT_MEMOIZATION_OPTION, |
| 91 | + /** |
| 92 | + * Printer instance for displaying types in tracing |
| 93 | + */ |
43 | 94 | private readonly PrinterInterface $typeTracingPrinter = new PrettyPrinter( |
44 | 95 | wrapUnionType: false, |
45 | 96 | multilineShape: \PHP_INT_MAX, |
|
0 commit comments