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

HasLanguage::language()   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 1
dl 0
loc 5
rs 10
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
}