1 | <?php |
||
12 | 1 | class Message extends SMSender\Message implements SMSender\IMessage |
|
13 | { |
||
14 | /** |
||
15 | * @param string $from |
||
16 | * @return self |
||
17 | */ |
||
18 | public function setFrom($from) |
||
26 | |||
27 | /** |
||
28 | * @param string $number |
||
29 | * @return self |
||
30 | */ |
||
31 | public function setTo($number) |
||
39 | |||
40 | /** |
||
41 | * @param string $text |
||
42 | * @return self |
||
43 | */ |
||
44 | public function setText($text) |
||
52 | } |
||
53 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.