background = $color; } /** * Set border width and color of current shape * * @param int $width * @param string $color * @return void */ public function border($width, $color = null) { $this->border_width = is_numeric($width) ? intval($width) : 0; $this->border_color = is_null($color) ? '#000000' : $color; } /** * Determines if current shape has border * * @return boolean */ public function hasBorder() { return ($this->border_width >= 1); } }