Completed
Pull Request — master (#102)
by Simon
03:35
created

FinishedJob::getCMSFields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
/**
4
 * Created by IntelliJ IDEA.
5
 * User: simon
6
 * Date: 18/09/16
7
 * Time: 17:05
8
 */
9
class FinishedJob extends QueuedJobDescriptor
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
10
{
11
12
    public function canCreate($member = null)
13
    {
14
        return false;
15
    }
16
17
    public function canDelete($member = null)
18
    {
19
        return true;
20
    }
21
22
    public function canEdit($member = null)
23
    {
24
        return false;
25
    }
26
27
    public function canView($member = null)
28
    {
29
        return true;
30
    }
31
32
    public function getCMSFields() {
33
        $fields = parent::getCMSFields();
34
        $fields->addFieldToTab('Root.Main', LiteralField::create('Messages', $this->getMessages()));
35
        return $fields;
36
    }
37
}
38