Action::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 4
1
<?php
2
3
/*
4
 * This file is part of the LineMob package.
5
 *
6
 * (c) Ishmael Doss <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace LineMob\Core\Template\ImageMap;
13
14
/**
15
 * @author WATCHDOGS <[email protected]>
16
 */
17
class Action
18
{
19
    const TYPE_MESSAGE = 'message';
20
    const TYPE_URI = 'uri';
21
22
    /**
23
     * @var string
24
     */
25
    public $type;
26
27
    /**
28
     * @var string|null
29
     */
30
    public $text;
31
32
    /**
33
     * @var string|null
34
     */
35
    public $link;
36
37
    /**
38
     * @var ActionArea
39
     */
40
    public $area;
41
42
    /**
43
     * Action constructor.
44
     * @param ActionArea $area
45
     * @param string $type
46
     * @param string|null $text
47
     * @param string|null $link
48
     */
49
    public function __construct(ActionArea $area, $type, $text = null, $link = null)
50
    {
51
        $this->type = $type;
52
        $this->text = $text;
53
        $this->link = $link;
54
        $this->area = $area;
55
    }
56
}
57