diff --git a/.idea/icon.svg b/.idea/icon.svg new file mode 100644 index 0000000..1174bb0 --- /dev/null +++ b/.idea/icon.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/psalm.xml b/psalm.xml index 6702d9e..01d83cc 100644 --- a/psalm.xml +++ b/psalm.xml @@ -5,6 +5,7 @@ xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" errorBaseline="psalm-baseline.xml" errorLevel="1" + findUnusedBaselineEntry="true" > diff --git a/resources/annotated.meta-storm.xml b/resources/annotated.meta-storm.xml new file mode 100644 index 0000000..69716b5 --- /dev/null +++ b/resources/annotated.meta-storm.xml @@ -0,0 +1,30 @@ + + + + + + + + + + diff --git a/resources/collections.meta-storm.xml b/resources/collections.meta-storm.xml new file mode 100644 index 0000000..d3a629c --- /dev/null +++ b/resources/collections.meta-storm.xml @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/resources/orm-factory.meta-storm.xml b/resources/orm-factory.meta-storm.xml new file mode 100644 index 0000000..50f2685 --- /dev/null +++ b/resources/orm-factory.meta-storm.xml @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/orm-iterator.meta-storm.xml b/resources/orm-iterator.meta-storm.xml new file mode 100644 index 0000000..865903a --- /dev/null +++ b/resources/orm-iterator.meta-storm.xml @@ -0,0 +1,30 @@ + + + + + + + + + + diff --git a/resources/orm-schema.meta-storm.xml b/resources/orm-schema.meta-storm.xml new file mode 100644 index 0000000..918a88e --- /dev/null +++ b/resources/orm-schema.meta-storm.xml @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/orm-services.meta-storm.xml b/resources/orm-services.meta-storm.xml new file mode 100644 index 0000000..263a103 --- /dev/null +++ b/resources/orm-services.meta-storm.xml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/orm.meta-storm.xml b/resources/orm.meta-storm.xml new file mode 100644 index 0000000..9bb7ad5 --- /dev/null +++ b/resources/orm.meta-storm.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + diff --git a/resources/relations.meta-storm.xml b/resources/relations.meta-storm.xml new file mode 100644 index 0000000..614255c --- /dev/null +++ b/resources/relations.meta-storm.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Annotation/Entity.php b/src/Annotation/Entity.php index 0e34d18..9e7a4cb 100644 --- a/src/Annotation/Entity.php +++ b/src/Annotation/Entity.php @@ -4,6 +4,10 @@ namespace Cycle\Annotated\Annotation; +use Cycle\ORM\MapperInterface as Mapper; +use Cycle\ORM\RepositoryInterface as Repository; +use Cycle\ORM\Select\ScopeInterface as Scope; +use Cycle\ORM\Select\SourceInterface as Source; use Doctrine\Common\Annotations\Annotation\Target; use Spiral\Attributes\NamedArgumentConstructor; @@ -17,15 +21,16 @@ class Entity { /** * @param non-empty-string|null $role Entity role. Defaults to the lowercase class name without a namespace. - * @param class-string|null $mapper Mapper class name. Defaults to {@see \Cycle\ORM\Mapper\Mapper} - * @param class-string|null $repository Repository class to represent read operations for an entity. + * @param class-string|null $mapper Mapper class name. Defaults to {@see \Cycle\ORM\Mapper\Mapper} + * @param class-string|null $repository Repository class to represent read operations for an entity. * Defaults to {@see \Cycle\ORM\Select\Repository} * @param non-empty-string|null $table Entity source table. Defaults to plural form of entity role. * @param bool $readonlySchema Set to true to disable schema synchronization for the assigned table. * @param non-empty-string|null $database Database name. Defaults to null (default database). - * @param class-string|null $source Entity source class (internal). Defaults to {@see \Cycle\ORM\Select\Source} + * @param class-string|null $source Entity source class (internal). + * Defaults to {@see \Cycle\ORM\Select\Source} * @param non-empty-string|non-empty-string[]|null $typecast - * @param class-string|null $scope Class name of constraint to be applied to every entity query. + * @param class-string|null $scope Class name of constraint to be applied to every entity query. * @param Column[] $columns Entity columns. * @param ForeignKey[] $foreignKeys Entity foreign keys. */