Completed
Pull Request — master (#14)
by
unknown
15:13 queued 07:44
created

Filename   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 0
dl 0
loc 17
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A filename() 0 6 1
1
<?php
2
3
namespace Yaro\Jarboe\Table\Fields\Traits;
4
5
use Closure;
6
7
trait Filename
8
{
9
    private $filenameClosure = null;
10
11
    /**
12
     * Set closure for changing filename upon upload.
13
     *
14
     * @param Closure $filenameClosure
15
     * @return $this
16
     */
17
    public function filename(Closure $filenameClosure)
18
    {
19
        $this->filenameClosure = $filenameClosure;
20
21
        return $this;
22
    }
23
}
24