Umwandlung-Tests für CMYK-Objekte geschrieben.

This commit is contained in:
2021-03-01 17:53:09 +01:00
parent 22d2eaf5a3
commit b6c256c84d
3 changed files with 181 additions and 0 deletions
@@ -0,0 +1,15 @@
<?php
namespace TorstenHettstedt\Colors\Transformer;
use TorstenHettstedt\Colors\ColorModels\CyanMagentaYellowKey;
use TorstenHettstedt\Colors\ColorModels\RedGreenBlue;
interface ColorModelTransformInterface
{
public function toRedGreenBlue(): RedGreenBlue;
public function toCyanMagentaYellowKey(): CyanMagentaYellowKey;
}
@@ -0,0 +1,33 @@
<?php
namespace TorstenHettstedt\Colors\Transformer;
use TorstenHettstedt\Colors\ColorModels\CyanMagentaYellowKey;
use TorstenHettstedt\Colors\ColorModels\RedGreenBlue;
class CyanMagentaYellowKeyTransformer implements ColorModelTransformInterface
{
protected CyanMagentaYellowKey $color;
/**
* @param CyanMagentaYellowKey $color
*/
public function __construct(CyanMagentaYellowKey $color)
{
$this->color = $color;
}
public function toRedGreenBlue(): RedGreenBlue
{
// TODO: Implement toRedGreenBlue() method.
}
public function toCyanMagentaYellowKey(): CyanMagentaYellowKey
{
// TODO: Implement toCyanMagentaYellowKey() method.
}
}