Completed
Pull Request — master (#5)
by Quim
05:12 queued 02:42
created

BindConfig::addTopic()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: quimmanrique
5
 * Date: 13/02/17
6
 * Time: 16:13
7
 */
8
9
namespace Infrastructure\AmqpLib\v26\RabbitMQ\Queue\Config;
10
11
12
class BindConfig
13
{
14
    protected $topics = [];
15
16
    public function addTopic($topic)
17
    {
18
        $this->topics[] = $topic;
19
        return $this;
20
    }
21
22
    public function getTopics()
23
    {
24
        return $this->topics;
25
    }
26
}