HasErrorHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setErrorHandler() 0 4 1
1
<?php
2
3
namespace Nofw\Error;
4
5
/**
6
 * Describes an error handler aware instance.
7
 *
8
 * @author Márk Sági-Kazár <[email protected]>
9
 */
10
trait HasErrorHandler
11
{
12
    /**
13
     * @var ErrorHandler
14
     */
15
    protected $errorHandler;
16
17
    /**
18
     * Sets an error handler instance.
19
     */
20
    public function setErrorHandler(ErrorHandler $errorHandler): void
21
    {
22
        $this->errorHandler = $errorHandler;
23
    }
24
}
25