| @@ 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 | ||
| @@ 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 | ||
| @@ 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 | ||
| @@ 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 | ||