Umwandlung-Tests für CMYK-Objekte geschrieben.
This commit is contained in:
@@ -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.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user