Record::getRecord()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Entity\Attribute\Accessor;
4
5
use App\Entity\Record as RecordEntity;
6
7
/**
8
 * Trait Record
9
 */
10
trait Record
11
{
12
    /**
13
     * Set record
14
     *
15
     * @param \App\Entity\Record $record
16
     * @return object
17
     */
18
    public function setRecord(RecordEntity $record = null)
19
    {
20
        $this->record = $record;
0 ignored issues
show
Bug Best Practice introduced by
The property record does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
21
22
        return $this;
23
    }
24
25
    /**
26
     * Get record
27
     *
28
     * @return \App\Entity\Record
29
     */
30
    public function getRecord()
31
    {
32
        return $this->record;
33
    }
34
}
35