Fixes and validation rules

This commit is contained in:
Joseph Cohen
2015-09-24 23:07:39 -05:00
parent 354bfffc97
commit 3f8471d8da
12 changed files with 108 additions and 29 deletions

View File

@@ -16,7 +16,7 @@ use CachetHQ\Cachet\Models\Component;
class UpdateComponentCommand
{
/**
* The component.
* The component to update.
*
* @var \CachetHQ\Cachet\Models\Component
*/
@@ -70,9 +70,12 @@ class UpdateComponentCommand
* @var string[]
*/
public $rules = [
'name' => 'string',
'status' => 'integer',
'link' => 'url',
'name' => 'string',
'description' => 'string',
'status' => 'integer',
'link' => 'url',
'order' => 'integer',
'group_id' => 'integer',
];
/**