aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/plugin-class-classifier/src/PropertyInfo.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/plugin-class-classifier/src/PropertyInfo.php')
-rw-r--r--scripts/plugin-class-classifier/src/PropertyInfo.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/plugin-class-classifier/src/PropertyInfo.php b/scripts/plugin-class-classifier/src/PropertyInfo.php
new file mode 100644
index 00000000..a15ddcf9
--- /dev/null
+++ b/scripts/plugin-class-classifier/src/PropertyInfo.php
@@ -0,0 +1,22 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Shirabe\PluginClassifier;
+
+final class PropertyInfo
+{
+ public function __construct(
+ public readonly string $name,
+ /** 'public' | 'protected' | 'private' */
+ public readonly string $visibility,
+ public readonly bool $static,
+ /** Class-like FQCNs in the native type. @var list<string> */
+ public readonly array $classTypes,
+ /** Native type is array/iterable/mixed/object or absent. */
+ public readonly bool $expandable,
+ /** Class-like FQCNs from the `@var` docblock. @var list<string> */
+ public readonly array $docblockTypes,
+ ) {
+ }
+}