width($width); $this->style($style); $this->color($color); } /** * Sets the style of the border. * * @param string $style The border style. Currently only "solid" is supported. * * @return $this */ public function style($style) { return $this->setSimpleValue('style', $style); } /** * Sets the width of the border. * * @param int|string $width The width of the border in pixels. * * @return $this */ public function width($width) { return $this->setSimpleValue('width', $width && is_numeric($width) ? "{$width}px" : $width); } /** * Sets the color of the border. * * @param string $color The border color. * * @return $this * * @see Color */ public function color($color) { return $this->setSimpleValue('$color', ClassUtils::verifyInstance($color, ColorValue::class)); } }