Passed
Push — master ( d79791...fa7243 )
by Chris
26:55 queued 16:32
created

SSMLable::ssml()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
namespace Cion\TextToSpeech\Traits;
4
5
trait SSMLable
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $textType = 'text';
11
12
    /**
13
     * Sets the text type to ssml default is text.
14
     *
15
     * @return $this
16
     */
17
    public function ssml()
18
    {
19
        $this->textType = 'ssml';
20
21
        return $this;
22
    }
23
}
24