GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( a7d97d...0097ae )
by Андрей
02:25
created

CurrentStep   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 3
c 3
b 0
f 0
lcom 1
cbo 2
dl 0
loc 34
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getEntry() 0 4 1
A setEntry() 0 10 2
1
<?php
2
/**
3
 * @link    https://github.com/old-town/workflow-doctrine
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace OldTown\Workflow\Spi\Doctrine\Entity;
7
8
use Doctrine\ORM\Mapping as ORM;
9
10
11
/**
12
 * Class CurrentStep
13
 *
14
 * @package OldTown\Workflow\Spi\Doctrine\Entity
15
 *
16
 * @ORM\Entity(repositoryClass="\OldTown\Workflow\Spi\Doctrine\EntityRepository\StepRepository")
17
 */
18
class CurrentStep extends AbstractStep implements CurrentStepInterface
19
{
20
    /**
21
     * @ORM\ManyToOne(targetEntity="AbstractEntry", inversedBy="currentSteps")
22
     * @ORM\JoinColumn(name="entry_id", referencedColumnName="id")
23
     *
24
     * @var EntryInterface
25
     */
26
    protected $entry;
27
28
    /**
29
     * @return EntryInterface
30
     */
31
    public function getEntry()
32
    {
33
        return $this->entry;
34
    }
35
36
    /**
37
     * @param EntryInterface $entry
38
     *
39
     * @return $this
40
     */
41
    public function setEntry(EntryInterface $entry)
42
    {
43
        $this->entry = $entry;
44
45
        if (!$entry->getCurrentSteps()->contains($this)) {
46
            $entry->getCurrentSteps()->add($this);
47
        }
48
49
        return $this;
50
    }
51
}
52