Completed
Push — master ( b59592...c78116 )
by Faiz
01:47
created

SQLRepository   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 5
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 30
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setConfig() 0 4 1
A initialize() 0 4 1
A getAllSurah() 0 4 1
A getSurah() 0 4 1
A getAyah() 0 4 1
1
<?php
2
3
namespace FaizShukri\Quran\Repositories\Source;
4
5
use FaizShukri\Quran\Supports\Config;
6
7
class SQLRepository implements SourceInterface
8
{
9
    private $config;
10
11
    public function setConfig(Config $config)
12
    {
13
        $this->config = $config;
14
    }
15
16
    public function initialize()
17
    {
18
19
    }
20
21
    public function getAllSurah()
22
    {
23
        // TODO: Implement getAllSurah() method.
24
    }
25
26
    public function getSurah($surah)
27
    {
28
        // TODO: Implement getSurah() method.
29
    }
30
31
    public function getAyah($surah, $ayah, $translation = 'ar')
32
    {
33
        // TODO: Implement getAyah() method.
34
    }
35
36
}