public function __toString()
 {
     $o = $this->options();
     if (!$this->isDirty($o, 'htmlAttributes.onclick', $emptyIsDirty = false)) {
         unset($o['htmlAttributes']['onclick']);
     }
     $this->options($o);
     return parent::__toString();
 }
 public function __toString()
 {
     $result = [];
     $result[] = $this->Title->toString();
     $data = $this->data();
     $this->setUnless($data, $this->_contentToken, ':content');
     $data[$this->_contentToken] = implode(PHP_EOL, $result) . PHP_EOL . $data[$this->_contentToken];
     $this->data($data);
     return parent::__toString();
 }
 public function __toString()
 {
     $result = [];
     $result[] = (string) $this->Title;
     $result[] = (string) $this->Body;
     $options = $this->options();
     $options[$this->_contentToken] = implode(PHP_EOL, $result);
     $this->options($options);
     return parent::__toString();
 }
 /**
  * __toString() override for Multipart entities that will loop through it's component parts and get thier string values
  * before adding it to the content array and calling parent::__toString()
  * 
  * @return string
  */
 public function __toString()
 {
     $result = [];
     foreach ($this->parts as $key => $value) {
         if (is_integer($key) && is_string($value)) {
             $result[] = (string) $this->{$value};
         } elseif (is_string($key) && is_string($value)) {
             $result[] = (string) $this->{$key};
         }
     }
     $options = $this->options();
     $options[$this->_contentToken] = implode(PHP_EOL, $result);
     $this->options($options);
     return parent::__toString();
 }