Completed
Push — master ( 7c13fc...e13714 )
by Gabriel
04:40
created

MFinante   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 19
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A balanceSheet() 0 3 1
A cif() 0 3 1
1
<?php
2
3
namespace ByTIC\MFinante;
4
5
use ByTIC\MFinante\Parsers\BalanceSheetPage as BalanceSheetPageParser;
6
use ByTIC\MFinante\Parsers\CompanyPage as CompanyPageParser;
7
use ByTIC\MFinante\Scrapers\BalanceSheetPage as BalanceSheetPageScraper;
8
use ByTIC\MFinante\Scrapers\CompanyPage as CompanyPageScraper;
9
10
/**
11
 * Class MFinante
12
 * @package ByTIC\Mfinante
13
 */
14
class MFinante
15
{
16
    /**
17
     * @param $cif
18
     * @return CompanyPageParser
19
     */
20
    public static function cif($cif)
21
    {
22
        return (new CompanyPageScraper($cif))->execute();
23
    }
24
25
    /**
26
     * @param int $cif
27
     * @param int $year
28
     * @return BalanceSheetPageParser
29
     */
30
    public static function balanceSheet($cif, $year)
31
    {
32
        return (new BalanceSheetPageScraper($cif, $year))->execute();
33
    }
34
}
35