# fluentform/3.6.65/app/Services/Spout/Writer/Style/BorderBuilder.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 3.6.65. 76 lines.

- Page: https://pluginprobe.com/plugins/fluentform/3.6.65/code/app/Services/Spout/Writer/Style/BorderBuilder.php
- Raw: https://pluginprobe.com/plugins/fluentform/3.6.65/raw/app/Services/Spout/Writer/Style/BorderBuilder.php
- Modified: 2019-05-31T20:28:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluentform/3.6.65/code/app/Services/Spout/Writer/Style/BorderBuilder.php#L10-L20`.

```php
<?php

namespace Box\Spout\Writer\Style;

/**
 * Class BorderBuilder
 */
class BorderBuilder
{
    /**
     * @var Border
     */
    protected $border;

    public function __construct()
    {
        $this->border = new Border();
    }

    /**
     * @param string|void $color Border A RGB color code
     * @param string|void $width Border width @see BorderPart::allowedWidths
     * @param string|void $style Border style @see BorderPart::allowedStyles
     * @return BorderBuilder
     */
    public function setBorderTop($color = Color::BLACK, $width = Border::WIDTH_MEDIUM, $style = Border::STYLE_SOLID)
    {
        $this->border->addPart(new BorderPart(Border::TOP, $color, $width, $style));
        return $this;
    }

    /**
     * @param string|void $color Border A RGB color code
     * @param string|void $width Border width @see BorderPart::allowedWidths
     * @param string|void $style Border style @see BorderPart::allowedStyles
     * @return BorderBuilder
     */
    public function setBorderRight($color = Color::BLACK, $width = Border::WIDTH_MEDIUM, $style = Border::STYLE_SOLID)
    {
        $this->border->addPart(new BorderPart(Border::RIGHT, $color, $width, $style));
        return $this;
    }

    /**
     * @param string|void $color Border A RGB color code
     * @param string|void $width Border width @see BorderPart::allowedWidths
     * @param string|void $style Border style @see BorderPart::allowedStyles
     * @return BorderBuilder
     */
    public function setBorderBottom($color = Color::BLACK, $width = Border::WIDTH_MEDIUM, $style = Border::STYLE_SOLID)
    {
        $this->border->addPart(new BorderPart(Border::BOTTOM, $color, $width, $style));
        return $this;
    }

    /**
     * @param string|void $color Border A RGB color code
     * @param string|void $width Border width @see BorderPart::allowedWidths
     * @param string|void $style Border style @see BorderPart::allowedStyles
     * @return BorderBuilder
     */
    public function setBorderLeft($color = Color::BLACK, $width = Border::WIDTH_MEDIUM, $style = Border::STYLE_SOLID)
    {
        $this->border->addPart(new BorderPart(Border::LEFT, $color, $width, $style));
        return $this;
    }

    /**
     * @return Border
     */
    public function build()
    {
        return $this->border;
    }
}

```
