Passed
Push — dev ( 451d27...7f1499 )
by Someshwer
02:53
created

World::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Someshwer\WorldCountries\Lib;
4
5
use Someshwer\WorldCountries\Data\DataRepository;
6
use Someshwer\WorldCountries\Utils\Continents;
7
use Someshwer\WorldCountries\Utils\Oceans;
8
use Someshwer\WorldCountries\Utils\UnionTerritories;
9
use Someshwer\WorldCountries\Utils\Wonders;
10
11
/**
12
 * Author: Someshwer Bandapally
13
 * Date: 26-05-2018.
14
 *
15
 * This class is a repository contains
16
 * different methods to provide different
17
 * implementations.
18
 *
19
 * Class World
20
 */
21
class World extends Countries
22
{
23
    use Continents;
24
    use Oceans;
25
    use Wonders;
26
    use UnionTerritories;
27
28
    /**
29
     * @var DataRepository
30
     */
31
    private $data;
32
33
    /**
34
     * World constructor.
35
     *
36
     * @param DataRepository $dataRepository
37
     */
38
    public function __construct(DataRepository $dataRepository)
39
    {
40
        parent::__construct($dataRepository);
41
        $this->data = $dataRepository;
42
    }
43
44
    /**
45
     * Tells some useful information about this package.
46
     */
47
    public function info()
48
    {
49
        return [
50
            'package_name' => 'Laravel - My World',
51
            'description'  => 'Laravel WorldCountries is a bundle for Laravel, providing useful world information that is all country names, timezones, ISO country codes, STD codes of countries  etc.
52
            This package only provides countries data that is all country names for all most 195 countries over the world along with continent names, ocean names, union territories names, world wonders names, ISO codes and ISO information, timezones and timezones information, and currencies and currency codes and symbols information.
53
            Also provides country wise states and state wise cities information.',
54
            'latest_release' => '3.4.9',
55
            'stable_version' => '3.4.9',
56
            'author'         => 'Someshwer Bandapally',
57
        ];
58
    }
59
}
60