Completed
Branch 7-dev (bf2895)
by Oscar
03:53
created

BeforeSaveRow   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRow() 0 4 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace SimpleCrud\Events;
5
6
use SimpleCrud\Row;
7
8
class BeforeSaveRow
9
{
10
    private $row;
11
12
    public function __construct(Row $row)
13
    {
14
        $this->row = $row;
15
    }
16
17
    public function getRow(): Row
18
    {
19
        return $this->row;
20
    }
21
}
22