Passed
Push — master ( 976a6a...998e2e )
by Rigel Kent
13:49
created

HasLanguage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 18
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A language() 0 5 1
1
<?php
2
3
namespace Cion\TextToSpeech\Traits;
4
5
trait HasLanguage
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $language;
11
12
    /**
13
     * Sets the language to be used.
14
     *
15
     * @param string $language
16
     * @return $this
17
     */
18
    public function language(string $language)
19
    {
20
        $this->language = $language;
21
22
        return $this;
23
    }
24
}