PathSource   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
1
<?php
2
3
namespace Cion\TextToSpeech\Sources;
4
5
use Cion\TextToSpeech\Contracts\Source as SourceContract;
6
7
class PathSource implements SourceContract
8
{
9
    /**
10
     * Handles in getting the text from source.
11
     *
12
     * @param  string $data
13
     * @return string
14
     */
15
    public function handle(string $data): string
16
    {
17
        return file_get_contents($data);
18
    }
19
}
20