Skip to content

Commit

Permalink
ImageInterface: Add definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Apr 17, 2022
1 parent 739b1c7 commit f7e7499
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/DTO/ImageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit f7e7499

Please sign in to comment.