Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp committed Jul 23, 2024
1 parent 41b9e16 commit cbc0ef6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Border.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,25 @@
namespace SimonHamp\TheOg;

use Intervention\Image\Colors\Rgb\Color;
use Intervention\Image\Interfaces\ColorInterface;

class Border
{
protected BorderPosition $position;
protected int $width;
protected string $color;

public function color(Color $color): self
public function color(ColorInterface $color): self
{
$this->color = $color;
return $this;
}

public function getColor(): Color
public function getColor(): ColorInterface
{
return Color::create($this->color);
}

public function position(BorderPosition $position): self
{
$this->position = $position;
Expand Down

0 comments on commit cbc0ef6

Please sign in to comment.