Completed
Push — master ( 3f58aa...01cbeb )
by Mathijs
04:40
created

Message::validate()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 1
1
<?php
2
3
namespace mcorten87\rabbitmq_api\objects;
4
5
class Message extends BaseObject
6
{
7
    public function __construct(string $value)
8
    {
9
        parent::__construct($value);
10
    }
11
12
    public function validate($value) : bool
13
    {
14
        if (empty($value)) {
15
            return false;
16
        }
17
        return parent::validate($value);
18
    }
19
}
20