| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | trait TCAssigned |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $topic = 'default'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $channel = 'default'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $topic |
||
| 25 | * @return static |
||
| 26 | */ |
||
| 27 | public function setTopic(string $topic) : self |
||
| 28 | { |
||
| 29 | $this->topic = $topic; |
||
| 30 | return $this; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getTopic() : string |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $chanel |
||
| 43 | * @return static |
||
| 44 | */ |
||
| 45 | public function setChannel(string $chanel) : self |
||
| 46 | { |
||
| 47 | $this->channel = $chanel; |
||
| 48 | return $this; |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getChannel() : string |
||
| 57 | } |
||
| 58 | } |
||
| 59 |