| 1 | <?php |
||
| 5 | class DiscordMessage |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The text content of the message. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public $body; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The embedded object attached to the message. |
||
| 16 | * |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | public $embed; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $body |
||
| 23 | * @param array|null $embed |
||
| 24 | * |
||
| 25 | * @return static |
||
| 26 | */ |
||
| 27 | 1 | public static function create($body = '', $embed = []) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $body |
||
| 34 | * @param array $embed |
||
| 35 | */ |
||
| 36 | 4 | public function __construct($body = '', $embed = []) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Set the text content of the message. |
||
| 44 | * |
||
| 45 | * @param string $body |
||
| 46 | * |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | 2 | public function body($body) |
|
| 55 | |||
| 56 | /** |
||
| 57 | * Set the embedded object. |
||
| 58 | * |
||
| 59 | * @param $embed |
||
| 60 | * |
||
| 61 | * @return $this |
||
| 62 | */ |
||
| 63 | 1 | public function embed($embed) |
|
| 69 | } |
||
| 70 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.