You are here

class GetSmtpTemplates in SendinBlue 8

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

Hierarchy

Expanded class hierarchy of GetSmtpTemplates

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

File

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

Namespace

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

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

  /**
   * @var GetSmtpTemplateOverview[]*/
  public $templates;

  /**
   * GetSmtpTemplates constructor.
   *
   * @param array $data
   */
  public function __construct(array $data = []) {
    $this->count = $data['count'];
    if (!empty($data['templates'])) {
      foreach ($data['templates'] as $template) {
        $this->templates[] = new GetSmtpTemplateOverview($template);
      }
    }
  }

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

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

  /**
   * @return GetSmtpTemplateOverview[]
   */
  public function getTemplates() : array {
    return $this->templates;
  }

  /**
   * @param GetSmtpTemplateOverview[] $templates
   */
  public function setTemplates(array $templates) {
    $this->templates = $templates;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
GetSmtpTemplates::$count public property @var string
GetSmtpTemplates::$templates public property @var GetSmtpTemplateOverview[]
GetSmtpTemplates::getCount public function
GetSmtpTemplates::getTemplates public function
GetSmtpTemplates::setCount public function
GetSmtpTemplates::setTemplates public function
GetSmtpTemplates::__construct public function GetSmtpTemplates constructor.