27 public function ok($value)
52 if (!$this->colorfactory) {
55 return $this->colorfactory->build($value);
An exception for terminatinating execution or to throw for unit testing.
Builds a Color from either hex- or rgb values.
color($value)
Color is a data type representing a color in HTML.
$colorfactory
cache for color factory.
ok($value)
Get an ok result.
error($e)
Get an error result.
A result encapsulates a value or an error and simplifies the handling of those.
A result encapsulates a value or an error and simplifies the handling of those.