Completed
Push — master ( 3f30e7...37b632 )
by Dmitry
08:21
created

Actor   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 10 2
1
<?php
2
3
namespace Job;
4
5
use Basis\Job;
6
use Basis\Context;
7
8
class Actor extends Job
9
{
10
    public $note;
11
12
    public function run()
13
    {
14
        $this->require('note');
15
16
        $note = $this->findOrFail('note', $this->note);
17
        $note->message = $this->get(Context::class)->getPerson() ?: '';
18
        $note->save();
19
20
        return compact('note');
21
    }
22
}
23