# give/4.16.8.1/src/FormMigration/DataTransferObjects/DesignHeaderSettings.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.8.1. 48 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.8.1/code/src/FormMigration/DataTransferObjects/DesignHeaderSettings.php
- Raw: https://pluginprobe.com/plugins/give/4.16.8.1/raw/src/FormMigration/DataTransferObjects/DesignHeaderSettings.php
- Modified: 2023-10-16T17:55:46+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/give/4.16.8.1/code/src/FormMigration/DataTransferObjects/DesignHeaderSettings.php#L10-L20`.

```php
<?php

namespace Give\FormMigration\DataTransferObjects;

class DesignHeaderSettings
{
    /** @var bool */
    protected $enabled;

    /** @var string */
    protected $heading;

    /** @var string */
    protected $description;

    public function __construct($enabled, $heading, $description)
    {
        $this->enabled = give_is_setting_enabled($enabled);
        $this->heading = $heading;
        $this->description = $description;
    }

    public function isEnabled(): bool
    {
        return $this->enabled;
    }

    public function hasHeading(): bool
    {
        return !empty($this->getHeading());
    }

    public function getHeading(): string
    {
        return $this->heading;
    }

    public function hasDescription(): bool
    {
        return !empty($this->getDescription());
    }

    public function getDescription(): string
    {
        return $this->description;
    }
}

```
