Started work on enabling/disabling components

This commit is contained in:
James Brooks
2015-11-03 21:32:45 +00:00
parent e8a3e18d55
commit edd111451e
10 changed files with 122 additions and 14 deletions

View File

@@ -64,6 +64,13 @@ final class UpdateComponentCommand
*/
public $group_id;
/**
* Is the component enabled?
*
* @var bool
*/
public $enabled;
/**
* The validation rules.
*
@@ -76,6 +83,7 @@ final class UpdateComponentCommand
'link' => 'url',
'order' => 'int',
'group_id' => 'int',
'enabled' => 'bool',
];
/**
@@ -88,10 +96,11 @@ final class UpdateComponentCommand
* @param string $link
* @param int $order
* @param int $group_id
* @param bool $enabled
*
* @return void
*/
public function __construct(Component $component, $name, $description, $status, $link, $order, $group_id)
public function __construct(Component $component, $name, $description, $status, $link, $order, $group_id, $enabled)
{
$this->component = $component;
$this->name = $name;
@@ -100,5 +109,6 @@ final class UpdateComponentCommand
$this->link = $link;
$this->order = $order;
$this->group_id = $group_id;
$this->enabled = $enabled;
}
}