Gmail::buildLink()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @link https://github.com/yiimaker/yii2-social-share
5
 * @copyright Copyright (c) 2017-2021 Volodymyr Kupriienko
6
 * @license BSD 3-Clause License
7
 */
8
9
namespace ymaker\social\share\drivers;
10
11
use ymaker\social\share\base\AbstractMailDriver;
12
13
/**
14
 * Driver for Gmail.
15
 *
16
 * @see https://gmail.google.com
17
 *
18
 * @author Vladimir Kuprienko <[email protected]>
19
 *
20
 * @since 1.0
21
 */
22
class Gmail extends AbstractMailDriver
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27
    protected function buildLink()
28
    {
29
        return 'https://mail.google.com/mail/?view=cm&fs=1&su={title}&body={body}';
30
    }
31
}
32