ConcurrencyException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Pagantis\ModuleUtils\Exception;
4
5
/**
6
 * Class ConcurrencyException
7
 *
8
 * @package Pagantis\ModuleUtils\Exception
9
 */
10
class ConcurrencyException extends AbstractException
11
{
12
    /**
13
     * ERROR_MESSAGE
14
     */
15
    const ERROR_MESSAGE = 'Validation in progress, try again later';
16
17
    /**
18
     * ERROR_CODE
19
     */
20
    const ERROR_CODE = 429;
21
22
    /**
23
     * ConcurrencyException constructor.
24
     */
25
    public function __construct()
26
    {
27
        $this->code = self::ERROR_CODE;
28
        $this->message = self::ERROR_MESSAGE;
29
30
        return parent::__construct($this->getMessage(), $this->getCode());
31
    }
32
}
33