src/Marando/Color/Color.php
private static function validateComp($component, $value, $min, $max)
    {
        if ($value < $min || $value > $max) {
            throw new Exception(
              "{$component} component {$value} must be {$min}-{$max}");
        }
    }
private static function validateComp($component, $value, $min, $max)
    {
        if ($value < $min || $value > $max) {
            throw new Exception(
              "{$component} component {$value} must be {$min}-{$max}");
        }
    }
private static function validateComp ( $ component , $ value , $ min , $ max ) { if ( $ value < $ min || $ value > $ max ) { throw new Exception ( "{$component} component {$value} must be {$min}-{$max}" ) ; } }
Validates a color component to see if fits within a range.

@param $component Name of the component.
@param $value     Value of the component.
@param $min       Min value allowed.
@param $max       Max value allowed.

@throws Exception
Validates a color component to see if fits within a range .