Test Failed
Pull Request — master (#2)
by Laurynas
43:45
created

EmailExistsException::getEntryId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php namespace Qualia\Exceptions;
2
3
class EmailExistsException extends RequestException
4
{
5
    /**
6
     * @var array
7
     */
8
    private $entryId;
9
10
    public function __construct($entryId)
11
    {
12
        $this->entryId = $entryId;
13
        $this->message = "Entry with such email already exists, entry id: $entryId";
14
    }
15
16
    /**
17
     * Returns ID of the entry that has email you already submitted
18
     *
19
     * @return array
20
     */
21
    public function getEntryId()
22
    {
23
        return $this->entryId;
24
    }
25
}