Element::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/*
4
 * This file is part of the doctrineviz package
5
 *
6
 * Copyright (c) 2017 Pierre Hennequart
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * Feel free to edit as you please, and have fun.
12
 *
13
 * @author Pierre Hennequart <[email protected]>
14
 */
15
16
declare(strict_types=1);
17
18
namespace Janalis\Doctrineviz\Graphviz;
19
20
abstract class Element implements ElementInterface
21
{
22
    /** @var string */
23
    protected $id;
24
25
    /**
26
     * Get id.
27
     *
28
     * @return string
29
     */
30
    public function getId(): ?string
31
    {
32
        return $this->id;
33
    }
34
35
    /**
36
     * Set id.
37
     *
38
     * @param string $id
39
     */
40
    public function setId(string $id): void
41
    {
42
        $this->id = $id;
43
    }
44
}
45