| Total Complexity | 1 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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) |
||
| 57 |