AbstractEntity   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setEntityType() 0 5 1
A getEntityType() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zored\Telegram\Entity\General;
6
7
use JMS\Serializer\Annotation as Serializer;
8
9
/** @Serializer\AccessType("public_method") */
10
abstract class AbstractEntity
11
{
12
    /**
13
     * @Serializer\SerializedName("_")
14
     * @Serializer\Type("string")
15
     * "_"
16
     *
17
     * @var string
18
     */
19
    public $entityType;
20
21
    public function getEntityType(): string
22
    {
23
        return $this->entityType;
24
    }
25
26
    public function setEntityType(string $entityType): self
27
    {
28
        $this->entityType = $entityType;
29
30
        return $this;
31
    }
32
}
33