Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
give
/
src
/
FormMigration
/
DataTransferObjects
:
DesignHeaderSettings.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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; } }