Code Duplication    Length = 13-13 lines in 4 locations

src/objects/Host.php 1 location

@@ 5-17 (lines=13) @@
2
3
namespace mcorten87\rabbitmq_api\objects;
4
5
class Host 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)) { return false; }
15
        return parent::validate($value);
16
    }
17
}
18

src/objects/QueueName.php 1 location

@@ 5-17 (lines=13) @@
2
3
namespace mcorten87\rabbitmq_api\objects;
4
5
class QueueName 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)) { return false; }
15
        return parent::validate($value);
16
    }
17
}
18

src/objects/User.php 1 location

@@ 5-17 (lines=13) @@
2
3
namespace mcorten87\rabbitmq_api\objects;
4
5
class User 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)) { return false; }
15
        return parent::validate($value);
16
    }
17
}
18

src/objects/VirtualHost.php 1 location

@@ 5-17 (lines=13) @@
2
3
namespace mcorten87\rabbitmq_api\objects;
4
5
class VirtualHost 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)) { return false; }
15
        return parent::validate($value);
16
    }
17
}
18