Completed
Push — master ( eaa085...85b293 )
by Jonathan
02:25
created

PasswordMismatchException   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
dl 0
loc 41
rs 10
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
A getIdOfPasswordProvided() 0 4 1
A getIdOfPasswordSought() 0 4 1
1
<?php
2
namespace Iron;
3
4
use Exception;
5
use InvalidArgumentException as Iae;
6
7
class PasswordMismatchException extends Iae implements IronException
8
{
9
    private $idProvided;
10
    private $idSought;
11
12
    /**
13
     * PasswordMismatchException constructor.
14
     * @param string $idProvided
15
     * @param string $idSought
16
     * @param string $message
17
     * @param $code
18
     * @param Exception $previous
19
     */
20
    public function __construct(
21
        $idProvided,
22
        $idSought,
23
        $message = '',
24
        $code = 0,
25
        Exception $previous = null
26
    ) {
27
        $this->idProvided = $idProvided;
28
        $this->idSought = $idSought;
29
        parent::__construct($message, $code, $previous);
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getIdOfPasswordProvided()
36
    {
37
        return $this->idProvided;
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getIdOfPasswordSought()
44
    {
45
        return $this->idSought;
46
    }
47
}
48