for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/yiimaker/yii2-social-share
* @copyright Copyright (c) 2017 Yii Maker
* @license BSD 3-Clause License
*/
namespace ymaker\social\share\base;
* Base class for drivers for mail services like Gmail and Yahoo.
*
* @author Vladimir Kuprienko <[email protected]>
* @since 2.0
abstract class AbstractMailDriver extends AbstractDriver
{
* @var string
public $bodyPattern = '{description} - {url}';
* @inheritdoc
protected function processShareData()
$this->title = static::encodeData($this->title);
$this->appendToData('body', strtr($this->bodyPattern, [
'{url}' => $this->url,
'{description}' => $this->description,
'{imageUrl}' => $this->imageUrl,
]));
}