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
+14 -4
View File
@@ -34,21 +34,31 @@ class AddMetricPointCommand
*
* @var string
*/
public $createdAt;
public $created_at;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'value' => 'integer',
'created_at' => 'string',
];
/**
* Create a new add metric point command instance.
*
* @param \CachetHQ\Cachet\Models\Metric $metric
* @param int $value
* @param string $createdAt
* @param string $created_at
*
* @return void
*/
public function __construct(Metric $metric, $value, $createdAt)
public function __construct(Metric $metric, $value, $created_at)
{
$this->metric = $metric;
$this->value = $value;
$this->createdAt = $createdAt;
$this->created_at = $created_at;
}
}