Skip to content

Commit

Permalink
More interface consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp committed Jan 15, 2024
1 parent c2a4c88 commit f3e343a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Layout/TextBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Intervention\Image\Geometry\Point;
use Intervention\Image\Geometry\Polygon;
use Intervention\Image\Geometry\Rectangle;
use Intervention\Image\Colors\Rgb\Color;
use Intervention\Image\Drivers\Imagick\Driver as ImagickDriver;
use Intervention\Image\Interfaces\ColorInterface;
use Intervention\Image\Interfaces\ImageInterface;
use Intervention\Image\Modifiers\TextModifier;
use Intervention\Image\Typography\FontFactory;
Expand All @@ -16,15 +16,15 @@

readonly class TextBox extends Box
{
public Color $color;
public ColorInterface $color;
public Font $font;
public string $hAlign;
public int $lineHeight;
public int $size;
public string $text;
public string $vAlign;

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

0 comments on commit f3e343a

Please sign in to comment.