| Total Complexity | 4 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | class AfricasTalkingMessage |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | protected $content; |
||
| 9 | |||
| 10 | /** @var string|null */ |
||
| 11 | protected $from; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Set the content for this message. |
||
| 15 | * |
||
| 16 | * |
||
| 17 | * @param string $content |
||
| 18 | * @return this |
||
| 19 | */ |
||
| 20 | public function content(string $content): self |
||
| 21 | { |
||
| 22 | $this->content = trim($content); |
||
| 23 | |||
| 24 | return $this; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Set the sender for this message. |
||
| 29 | * |
||
| 30 | * @param string $from |
||
| 31 | * @return this |
||
| 32 | */ |
||
| 33 | public function from(string $from): self |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get Message Content. |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function getContent() |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Get Sender Info. |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getSender() |
||
| 60 |