Skip to content

Commit

Permalink
Fix some Psalm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Mar 11, 2024
1 parent 9e565e4 commit 9fb70cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
15 changes: 3 additions & 12 deletions src/Model/Brand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ class Brand implements BrandInterface
ImagesAwareTrait::__construct as private __imagesAwareTraitConstruct;
}

/** @var int */
protected $id;
protected ?int $id = null;

/** @var string|null */
protected $code;
protected ?string $code;

/** @var string|null */
protected $name;
protected ?string $name;

public function __construct()
{
Expand All @@ -38,17 +35,11 @@ public function getId(): ?int
return $this->id;
}

/**
* @return string
*/
public function getCode(): ?string
{
return $this->code;
}

/**
* @param string $code
*/
public function setCode(?string $code): void
{
$this->code = $code;
Expand Down
3 changes: 0 additions & 3 deletions src/Model/BrandInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ interface BrandInterface extends ResourceInterface, CodeAwareInterface, Products
*/
public function __toString(): string;

/**
* @return int
*/
public function getId(): ?int;

public function getName(): ?string;
Expand Down

0 comments on commit 9fb70cf

Please sign in to comment.