Shorten::url()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Vinelab\UrlShortener;
4
5
use Vinelab\UrlShortener\Base\Handler;
6
use Vinelab\UrlShortener\Contracts\ShortenInterface;
7
8
/**
9
 * Class Shorten is the API (entry point) to the public functionality of the package.
10
 *
11
 * @category API
12
 *
13
 * @author   Mahmoud Zalt <[email protected]>
14
 */
15
class Shorten extends Handler implements ShortenInterface
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function url($url)
21
    {
22
        return $this->getDriver()->shorten($url);
23
    }
24
}
25