it-bens / shopware-sdk-data-core
The data base classes, interfaces and traits of the Shopware 6 SDK
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/it-bens/shopware-sdk-data-core
Requires
- php: ^8.3
Requires (Dev)
- captainhook/captainhook: ^5.25
- captainhook/plugin-composer: ^5.3
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12
- rector/rector: ^2.0
- symplify/coding-standard: ^12.3
- symplify/easy-coding-standard: ^12.5
README
This package contains the core data classes, interfaces and traits for the Shopware 6 PHP SDK.
Struct
The abstract base class for all structured data in the SDK. It implements the usage of extensions and provides a method so recursively normalize the data.
Collection
The abstract base class for all collections in the SDK. A Collection is itself a Struct implementation. I can hold any object type. It is implemented as an invariant generic. The Countable and IteratorAggregate interfaces are implemented.
Entity
The abstract base class for all entities in the SDK. An entity is a Struct with an identifier that provides a type-safe and relation-supporting property handling. All entities share two additional properties: custom fields and translations.
EntityCollection
The abstract base class for all entity collections in the SDK. An EntityCollection is Collection implementation that provides methods to insert entities, merge collections, and filter entities by property values.
EntityDefinition
The interface that defines how an Entity is linked to its name, its EntityCollection and its Schema.
Schema and Property
A Schema contains a collection of Property objects. A Property is a data structure that describes what information is provided by Shopware for this entity.