Completed
Pull Request — master (#9)
by Adam
15:12
created

MessageException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A missingProperty() 0 6 1
1
<?php
2
3
namespace Equip\Queue\Exception;
4
5
use Exception;
6
7
class MessageException extends Exception
8
{
9
    /**
10
     * @param string $name
11
     *
12
     * @return static
13
     */
14
    public static function missingProperty($name)
15
    {
16
        return new static(
17
            sprintf('Missing property `%s`.', $name)
18
        );
19
    }
20
}
21