| 1 | <?php |
||
| 16 | final class UpdateCommentCommand |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * The comment to update. |
||
| 20 | * |
||
| 21 | * @var \Gitamin\Models\Comment |
||
| 22 | */ |
||
| 23 | public $comment; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The comment message. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | public $message; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * The validation rules. |
||
| 34 | * |
||
| 35 | * @var string[] |
||
| 36 | */ |
||
| 37 | public $rules = [ |
||
| 38 | 'message' => 'required|string', |
||
| 39 | ]; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Create a new update comment command instance. |
||
| 43 | * |
||
| 44 | * @param string $message |
||
| 45 | */ |
||
| 46 | public function __construct(Comment $comment, $message) |
||
| 51 | } |
||
| 52 |