public function getContent()
    {

        $this->tagName = 'rect';
        $this->addAttribute('x', $this->x);
        $this->addAttribute('y', $this->y);
        $this->addAttribute('width', $this->width);
        $this->addAttribute('height', $this->height);
        $this->addAttribute('fill', $this->color);
        $this->addAttribute('stroke-width', $this->borderWidth);
        $this->addAttribute('stroke', $this->borderColor);

        return parent::getContent();
    }
public function getContent()
    {

        $this->tagName = 'rect';
        $this->addAttribute('x', $this->x);
        $this->addAttribute('y', $this->y);
        $this->addAttribute('width', $this->width);
        $this->addAttribute('height', $this->height);
        $this->addAttribute('fill', $this->color);
        $this->addAttribute('stroke-width', $this->borderWidth);
        $this->addAttribute('stroke', $this->borderColor);

        return parent::getContent();
    }
public function getContent ( ) { $ this -> tagName = 'rect' ; $ this -> addAttribute ( 'x' , $ this -> x ) ; $ this -> addAttribute ( 'y' , $ this -> y ) ; $ this -> addAttribute ( 'width' , $ this -> width ) ; $ this -> addAttribute ( 'height' , $ this -> height ) ; $ this -> addAttribute ( 'fill' , $ this -> color ) ; $ this -> addAttribute ( 'stroke-width' , $ this -> borderWidth ) ; $ this -> addAttribute ( 'stroke' , $ this -> borderColor ) ; return parent :: getContent ( ) ; }
stroke="black" stroke-width="3"
stroke = black stroke - width = 3