Exemplo n.º 1
0
 /**
  * Constructor method for MailKeyValuePairs
  * @param string $section Section. Normally present. If absent this indicates that CustomMetadata info is present but there are no sections to report on.
  * @param array $a
  * @return self
  */
 public function __construct($section = null, array $a = array())
 {
     parent::__construct($a);
     if (null !== $section) {
         $this->property('section', trim($section));
     }
 }
Exemplo n.º 2
0
 /**
  * Constructor method for MailKeyValuePairs
  * @param string $section Section. Normally present. If absent this indicates that CustomMetadata info is present but there are no sections to report on.
  * @param array $pairs Key value pairs
  * @return self
  */
 public function __construct($section = null, array $pairs = [])
 {
     parent::__construct($pairs);
     if (null !== $section) {
         $this->setProperty('section', trim($section));
     }
 }