Completed
Push — develop ( becfea...d327ce )
by Serhii
02:33
created

BadRequestException::getProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Sleepness\UberOAuthRestBundle\Exception;
4
5
class BadRequestException extends \RuntimeException
6
{
7
    /**
8
     * @var string
9
     */
10
    private $provider;
11
12
    public function __construct($message, $provider, $code = 0, \Exception $previous = null)
13
    {
14
        parent::__construct($message, $code, $previous);
15
        $this->provider = $provider;
16
    }
17
18
    /**
19
     * @return string
20
     */
21
    public function getProvider()
22
    {
23
        return $this->provider;
24
    }
25
}
26