public function setForegroundColor($foregroundColor)
    {
        if ( is_null($this->frontColor) ) {
            $this->frontColor = new Color;
        }

        $this->frontColor->setFromArray($foregroundColor);

        return $this;
    }
public function setForegroundColor($foregroundColor)
    {
        if ( is_null($this->frontColor) ) {
            $this->frontColor = new Color;
        }

        $this->frontColor->setFromArray($foregroundColor);

        return $this;
    }
public function setForegroundColor ( $ foregroundColor ) { if ( is_null ( $ this -> frontColor ) ) { $ this -> frontColor = new Color ; } $ this -> frontColor -> setFromArray ( $ foregroundColor ) ; return $ this ; }
Set foreground color of the QR Code

@param array $foregroundColor

@return Builder
Set foreground color of the QR Code