You are here

class GetSmtpDetails in SendinBlue 8.2

Same name and namespace in other branches
  1. 8 src/Tools/Model/GetSmtpDetails.php \Drupal\sendinblue\Tools\Model\GetSmtpDetails

Hierarchy

Expanded class hierarchy of GetSmtpDetails

2 files declare their use of GetSmtpDetails
SendinblueApiV2.php in src/Tools/Api/SendinblueApiV2.php
SendinblueApiV3.php in src/Tools/Api/SendinblueApiV3.php

File

src/Tools/Model/GetSmtpDetails.php, line 8

Namespace

Drupal\sendinblue\Tools\Model
View source
class GetSmtpDetails {

  /**
   * @var string*/
  public $userName;

  /**
   * @var string*/
  public $relay;

  /**
   * @var int*/
  public $port;

  /**
   * @var bool*/
  private $enabled;

  /**
   * GetSmtpDetails constructor.
   *
   * @param string $userName
   * @param string $relay
   * @param int $port
   * @param bool $enabled
   */
  public function __construct(string $userName, string $relay, int $port, bool $enabled) {
    $this->userName = $userName;
    $this->relay = $relay;
    $this->port = $port;
    $this->enabled = $enabled;
  }

  /**
   * @return string
   */
  public function getUserName() : string {
    return $this->userName;
  }

  /**
   * @param string $userName
   */
  public function setUserName(string $userName) {
    $this->userName = $userName;
  }

  /**
   * @return string
   */
  public function getRelay() : string {
    return $this->relay;
  }

  /**
   * @param string $relay
   */
  public function setRelay(string $relay) {
    $this->relay = $relay;
  }

  /**
   * @return int
   */
  public function getPort() : int {
    return $this->port;
  }

  /**
   * @param int $port
   */
  public function setPort(int $port) {
    $this->port = $port;
  }

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

  /**
   * @param bool $enabled
   */
  public function setEnabled(bool $enabled) {
    $this->enabled = $enabled;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
GetSmtpDetails::$enabled private property @var bool
GetSmtpDetails::$port public property @var int
GetSmtpDetails::$relay public property @var string
GetSmtpDetails::$userName public property @var string
GetSmtpDetails::getPort public function
GetSmtpDetails::getRelay public function
GetSmtpDetails::getUserName public function
GetSmtpDetails::isEnabled public function
GetSmtpDetails::setEnabled public function
GetSmtpDetails::setPort public function
GetSmtpDetails::setRelay public function
GetSmtpDetails::setUserName public function
GetSmtpDetails::__construct public function GetSmtpDetails constructor.