Completed
Push — master ( dcb869...651674 )
by Dmitry
02:44
created

Post   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A afterCreate() 0 4 1
A afterUpdate() 0 4 1
1
<?php
2
3
namespace Entity;
4
5
use Tarantool\Mapper\Entity;
6
7
class Post extends Entity
8
{
9
    /**
10
     * @var integer
11
     */
12
    public $id;
13
14
    /**
15
     * @var string
16
     */
17
    public $text;
18
19
    public function afterCreate()
20
    {
21
        $this->text .= '!';
22
    }
23
24
    public function afterUpdate()
25
    {
26
        $this->text .= '.';
27
    }
28
}
29