Completed
Push — master ( afbcfa...dca8ec )
by Márk
13:11 queued 11:26
created

HasErrorHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 19
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
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
     * @param ErrorHandler $errorHandler
21
     *
22
     * @return void
23
     */
24
    public function setErrorHandler(ErrorHandler $errorHandler): void
25
    {
26
        $this->errorHandler = $errorHandler;
27
    }
28
}
29