Properties

$backgroundColor

$backgroundColor : \BaconQrCode\Renderer\Color\ColorInterface

Type

ColorInterface

$foregroundColor

$foregroundColor : \BaconQrCode\Renderer\Color\ColorInterface|null

Type

ColorInterface|null

$foregroundGradient

$foregroundGradient : \BaconQrCode\Renderer\RendererStyle\Gradient|null

Type

Gradient|null

$topLeftEyeFill

$topLeftEyeFill : \BaconQrCode\Renderer\RendererStyle\EyeFill

Type

EyeFill

$topRightEyeFill

$topRightEyeFill : \BaconQrCode\Renderer\RendererStyle\EyeFill

Type

EyeFill

$bottomLeftEyeFill

$bottomLeftEyeFill : \BaconQrCode\Renderer\RendererStyle\EyeFill

Type

EyeFill

$default

$default : self|null

Type

self|null

Methods

default()

default() : self

Returns

self —

withForegroundColor()

withForegroundColor(\BaconQrCode\Renderer\Color\ColorInterface  $backgroundColor, \BaconQrCode\Renderer\Color\ColorInterface  $foregroundColor, \BaconQrCode\Renderer\RendererStyle\EyeFill  $topLeftEyeFill, \BaconQrCode\Renderer\RendererStyle\EyeFill  $topRightEyeFill, \BaconQrCode\Renderer\RendererStyle\EyeFill  $bottomLeftEyeFill) : self

Parameters

\BaconQrCode\Renderer\Color\ColorInterface $backgroundColor
\BaconQrCode\Renderer\Color\ColorInterface $foregroundColor
\BaconQrCode\Renderer\RendererStyle\EyeFill $topLeftEyeFill
\BaconQrCode\Renderer\RendererStyle\EyeFill $topRightEyeFill
\BaconQrCode\Renderer\RendererStyle\EyeFill $bottomLeftEyeFill

Returns

self —

withForegroundGradient()

withForegroundGradient(\BaconQrCode\Renderer\Color\ColorInterface  $backgroundColor, \BaconQrCode\Renderer\RendererStyle\Gradient  $foregroundGradient, \BaconQrCode\Renderer\RendererStyle\EyeFill  $topLeftEyeFill, \BaconQrCode\Renderer\RendererStyle\EyeFill  $topRightEyeFill, \BaconQrCode\Renderer\RendererStyle\EyeFill  $bottomLeftEyeFill) : self

Parameters

\BaconQrCode\Renderer\Color\ColorInterface $backgroundColor
\BaconQrCode\Renderer\RendererStyle\Gradient $foregroundGradient
\BaconQrCode\Renderer\RendererStyle\EyeFill $topLeftEyeFill
\BaconQrCode\Renderer\RendererStyle\EyeFill $topRightEyeFill
\BaconQrCode\Renderer\RendererStyle\EyeFill $bottomLeftEyeFill

Returns

self —

uniformColor()

uniformColor(\BaconQrCode\Renderer\Color\ColorInterface  $backgroundColor, \BaconQrCode\Renderer\Color\ColorInterface  $foregroundColor) : self

Parameters

\BaconQrCode\Renderer\Color\ColorInterface $backgroundColor
\BaconQrCode\Renderer\Color\ColorInterface $foregroundColor

Returns

self —

uniformGradient()

uniformGradient(\BaconQrCode\Renderer\Color\ColorInterface  $backgroundColor, \BaconQrCode\Renderer\RendererStyle\Gradient  $foregroundGradient) : self

Parameters

\BaconQrCode\Renderer\Color\ColorInterface $backgroundColor
\BaconQrCode\Renderer\RendererStyle\Gradient $foregroundGradient

Returns

self —

hasGradientFill()

hasGradientFill() : bool

Returns

bool —

getBackgroundColor()

getBackgroundColor() : \BaconQrCode\Renderer\Color\ColorInterface

Returns

\BaconQrCode\Renderer\Color\ColorInterface —

getForegroundColor()

getForegroundColor() : \BaconQrCode\Renderer\Color\ColorInterface

Returns

\BaconQrCode\Renderer\Color\ColorInterface —

getForegroundGradient()

getForegroundGradient() : \BaconQrCode\Renderer\RendererStyle\Gradient

Returns

\BaconQrCode\Renderer\RendererStyle\Gradient —

getTopLeftEyeFill()

getTopLeftEyeFill() : \BaconQrCode\Renderer\RendererStyle\EyeFill

Returns

\BaconQrCode\Renderer\RendererStyle\EyeFill —

getTopRightEyeFill()

getTopRightEyeFill() : \BaconQrCode\Renderer\RendererStyle\EyeFill

Returns

\BaconQrCode\Renderer\RendererStyle\EyeFill —

getBottomLeftEyeFill()

getBottomLeftEyeFill() : \BaconQrCode\Renderer\RendererStyle\EyeFill

Returns

\BaconQrCode\Renderer\RendererStyle\EyeFill —

__construct()

__construct(\BaconQrCode\Renderer\Color\ColorInterface  $backgroundColor, ?\BaconQrCode\Renderer\Color\ColorInterface  $foregroundColor, ?\BaconQrCode\Renderer\RendererStyle\Gradient  $foregroundGradient, \BaconQrCode\Renderer\RendererStyle\EyeFill  $topLeftEyeFill, \BaconQrCode\Renderer\RendererStyle\EyeFill  $topRightEyeFill, \BaconQrCode\Renderer\RendererStyle\EyeFill  $bottomLeftEyeFill) : mixed

Parameters

\BaconQrCode\Renderer\Color\ColorInterface $backgroundColor
?\BaconQrCode\Renderer\Color\ColorInterface $foregroundColor
?\BaconQrCode\Renderer\RendererStyle\Gradient $foregroundGradient
\BaconQrCode\Renderer\RendererStyle\EyeFill $topLeftEyeFill
\BaconQrCode\Renderer\RendererStyle\EyeFill $topRightEyeFill
\BaconQrCode\Renderer\RendererStyle\EyeFill $bottomLeftEyeFill

Returns

mixed —