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

Post::afterUpdate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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