class BorderQualifier extends BaseQualifier

Adds a solid border around an image or video.

Learn more: Adding image borders

Properties

BorderValue $value

Methods

solid(int $width = null, string $color = null)

Adds a border around the image.

width(int|string $width)

Sets the width of the border.

style(string $style)

Sets the style of the border.

color(string $color)

Sets the color of the border.

fromParams(string|array $border)

Creates a new instance using provided qualifiers array.

Details

static Border solid(int $width = null, string $color = null)

Adds a border around the image.

Parameters

Name Type Description
$width int The width in pixels.
$color string The color of the border.

Return Value

Border

$this width(int|string $width)

Sets the width of the border.

Parameters

Name Type Description
$width int|string The width in pixels.

Return Value

$this

$this style(string $style)

Sets the style of the border.

Parameters

Name Type Description
$style string The style of the border. Currently only "solid" is supported.

Return Value

$this

$this color(string $color)

Sets the color of the border.

Parameters

Name Type Description
$color string The color of the border.

Return Value

$this

static BorderQualifier fromParams(string|array $border)

Creates a new instance using provided qualifiers array.

Parameters

Name Type Description
$border string|array The qualifiers of border.

Return Value

BorderQualifier

Constants

VALUE_CLASS