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

Message   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A validate() 0 7 2
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