diff --git a/src/DTO/ImageInterface.php b/src/DTO/ImageInterface.php index 285ae70..140062a 100644 --- a/src/DTO/ImageInterface.php +++ b/src/DTO/ImageInterface.php @@ -5,7 +5,30 @@ namespace Baraja\EcommerceStandard\DTO; -interface ImageInterface +interface ImageInterface extends \Stringable { + public function getId(): int; + public function getRelativePath(): string; + + public function getSource(): string; + + public function getUrl(): string; + + /** + * @return array{source: string, title: string, url: string} + */ + public function toArray(): array; + + public function getProduct(): ProductInterface; + + public function getVariant(): ?ProductVariantInterface; + + public function getPosition(): int; + + public function getAltTitle(): string; + + public function getTag(): ?string; + + public function setTag(?string $tag): void; }