src/Decorator/Component/Color.php
public function get($val)
    {
        // If we already have the code, just return that
        if (is_numeric($val)) {
            return $val;
        }

        if (array_key_exists($val, $this->colors)) {
            return $this->colors[$val];
        }

        return null;
    }
public function get($val)
    {
        // If we already have the code, just return that
        if (is_numeric($val)) {
            return $val;
        }

        if (array_key_exists($val, $this->colors)) {
            return $this->colors[$val];
        }

        return null;
    }
public function get ( $ val ) { // If we already have the code, just return that if ( is_numeric ( $ val ) ) { return $ val ; } if ( array_key_exists ( $ val , $ this -> colors ) ) { return $ this -> colors [ $ val ] ; } return null ; }
Get the code for the color

@param  string  $val

@return string
Get the code for the color