Completed
Push — master ( 48e5b8...eb0757 )
by Tobias
20:40
created

LimitExceeded   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
1
<?php
2
3
/*
4
 * Copyright (C) 2013 Mailgun
5
 *
6
 * This software may be modified and distributed under the terms
7
 * of the MIT license. See the LICENSE file for details.
8
 */
9
10
namespace Mailgun\Message\Exceptions;
11
12
use Mailgun\Exception;
13
14
class LimitExceeded extends \Exception implements Exception
15
{
16
    public static function create($field, $limit)
17
    {
18
        return new self(sprintf('You\'ve exceeded the maximum (%d) %s for a single message.', $limit, $field));
19
    }
20
}
21