mirror of
https://github.com/Intervention/image.git
synced 2025-08-21 13:11:18 +02:00
Change signature of AbstractFont & FontInterface
This commit is contained in:
@@ -29,7 +29,7 @@ abstract class AbstractFont implements FontInterface
|
|||||||
return $this->text;
|
return $this->text;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function size(float $size): self
|
public function size(float $size): FontInterface
|
||||||
{
|
{
|
||||||
$this->size = $size;
|
$this->size = $size;
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ abstract class AbstractFont implements FontInterface
|
|||||||
return $this->size;
|
return $this->size;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function angle(float $angle): self
|
public function angle(float $angle): FontInterface
|
||||||
{
|
{
|
||||||
$this->angle = $angle;
|
$this->angle = $angle;
|
||||||
|
|
||||||
@@ -53,14 +53,14 @@ abstract class AbstractFont implements FontInterface
|
|||||||
return $this->angle;
|
return $this->angle;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function filename(string $filename): self
|
public function filename(string $filename): FontInterface
|
||||||
{
|
{
|
||||||
$this->filename = $filename;
|
$this->filename = $filename;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getFilename(): string
|
public function getFilename(): ?string
|
||||||
{
|
{
|
||||||
return $this->filename;
|
return $this->filename;
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ abstract class AbstractFont implements FontInterface
|
|||||||
return is_file($this->filename);
|
return is_file($this->filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function color($color): self
|
public function color($color): FontInterface
|
||||||
{
|
{
|
||||||
$this->color = $color;
|
$this->color = $color;
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ abstract class AbstractFont implements FontInterface
|
|||||||
return $this->handleInput($this->color);
|
return $this->handleInput($this->color);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function align(string $align): self
|
public function align(string $align): FontInterface
|
||||||
{
|
{
|
||||||
$this->align = $align;
|
$this->align = $align;
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ abstract class AbstractFont implements FontInterface
|
|||||||
return $this->valign;
|
return $this->valign;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function valign(string $valign): self
|
public function valign(string $valign): FontInterface
|
||||||
{
|
{
|
||||||
$this->valign = $valign;
|
$this->valign = $valign;
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@ interface FontInterface
|
|||||||
public function angle(float $angle): self;
|
public function angle(float $angle): self;
|
||||||
public function getAngle(): float;
|
public function getAngle(): float;
|
||||||
public function filename(string $filename): self;
|
public function filename(string $filename): self;
|
||||||
public function getFilename(): string;
|
public function getFilename(): ?string;
|
||||||
public function hasFilename(): bool;
|
public function hasFilename(): bool;
|
||||||
public function align(string $align): self;
|
public function align(string $align): self;
|
||||||
public function getAlign(): string;
|
public function getAlign(): string;
|
||||||
|
Reference in New Issue
Block a user