Skip to content

Commit

Permalink
Merge pull request #105: add MetaStorm metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk authored Dec 27, 2024
2 parents 3f6dec2 + 0f005e3 commit 6791784
Show file tree
Hide file tree
Showing 11 changed files with 562 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .idea/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorBaseline="psalm-baseline.xml"
errorLevel="1"
findUnusedBaselineEntry="true"
>
<projectFiles>
<directory name="src" />
Expand Down
30 changes: 30 additions & 0 deletions resources/annotated.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<definitions>
<collection
className="\Cycle\Annotated\Annotation\Embeddable"
methodName="__construct"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\Annotated\Annotation\Embeddable"
methodName="__construct"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\Annotated\Annotation\ForeignKey"
methodName="__construct"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\Annotated\Annotation\ForeignKey"
methodName="__construct"
argumentIndex="0"
collectionName="entity-role"
/>
</definitions>
</meta-storm>
22 changes: 22 additions & 0 deletions resources/collections.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<collections>
<attributeArgument
name="entity-role"
className="\Cycle\Annotated\Annotation\Entity"
argumentIndex="0"
/>
<attributeClass
name="entity-class"
className="\Cycle\Annotated\Annotation\Entity"
/>
<attributeClass
name="entity-embeddable-class"
className="\Cycle\Annotated\Annotation\Embeddable"
/>
<attributeClass
name="cycle-mapper"
className="\Cycle\Annotated\Annotation\Embeddable"
/>
</collections>
</meta-storm>
82 changes: 82 additions & 0 deletions resources/orm-factory.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<definitions>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="mapper"
argumentIndex="1"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="mapper"
argumentIndex="1"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\FactoryInterface"
methodName="loader"
argumentIndex="2"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="loader"
argumentIndex="2"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\FactoryInterface"
methodName="repository"
argumentIndex="2"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="repository"
argumentIndex="2"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\FactoryInterface"
methodName="typecast"
argumentIndex="2"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="typecast"
argumentIndex="2"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\FactoryInterface"
methodName="source"
argumentIndex="1"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="source"
argumentIndex="1"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\FactoryInterface"
methodName="relation"
argumentIndex="2"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="relation"
argumentIndex="2"
collectionName="entity-role"
/>
</definitions>
</meta-storm>
30 changes: 30 additions & 0 deletions resources/orm-iterator.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<definitions>
<collection
className="\Cycle\ORM\Iterator"
methodName="createWithOrm"
argumentIndex="1"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\Iterator"
methodName="createWithOrm"
argumentIndex="1"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\Iterator"
methodName="createWithServices"
argumentIndex="3"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\Iterator"
methodName="createWithServices"
argumentIndex="3"
collectionName="entity-role"
/>
</definitions>
</meta-storm>
82 changes: 82 additions & 0 deletions resources/orm-schema.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<definitions>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="getRelations"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="getRelations"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\SchemaInterface"
methodName="defines"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="defines"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\SchemaInterface"
methodName="define"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="define"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\SchemaInterface"
methodName="defineRelation"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="defineRelation"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\SchemaInterface"
methodName="resolveAlias"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="resolveAlias"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\SchemaInterface"
methodName="getInheritedRoles"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="getInheritedRoles"
argumentIndex="0"
collectionName="entity-role"
/>
</definitions>
</meta-storm>
121 changes: 121 additions & 0 deletions resources/orm-services.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<definitions>
<collection
className="\Cycle\ORM\Service\SourceProviderInterface"
methodName="getSource"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\Service\SourceProviderInterface"
methodName="getSource"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\Service\EntityProviderInterface"
methodName="get"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\Service\EntityProviderInterface"
methodName="get"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\Service\EntityFactoryInterface"
methodName="make"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\Service\EntityFactoryInterface"
methodName="make"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\Service\IndexProviderInterface"
methodName="getIndexes"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\Service\IndexProviderInterface"
methodName="getIndexes"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\ORMInterface"
methodName="resolveRole"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\ORMInterface"
methodName="resolveRole"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\Service\RelationProviderInterface"
methodName="getRelationMap"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\Service\RelationProviderInterface"
methodName="getRelationMap"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\Service\MapperProviderInterface"
methodName="getMapper"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\Service\MapperProviderInterface"
methodName="getMapper"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\Service\RepositoryProviderInterface"
methodName="getRepository"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\Service\RepositoryProviderInterface"
methodName="getRepository"
argumentIndex="0"
collectionName="entity-role"
/>

<collection
className="\Cycle\ORM\Service\TypecastProviderInterface"
methodName="getTypecast"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\Service\TypecastProviderInterface"
methodName="getTypecast"
argumentIndex="0"
collectionName="entity-role"
/>
</definitions>
</meta-storm>
Loading

0 comments on commit 6791784

Please sign in to comment.