Everything is property!

This commit is contained in:
James Brooks
2015-01-02 12:07:51 +00:00
parent 5479848719
commit e0a6e795b1
11 changed files with 89 additions and 36 deletions

View File

@@ -10,14 +10,17 @@ use Illuminate\Database\Eloquent\SoftDeletingTrait;
use Watson\Validating\ValidatingTrait;
/**
* @property int $id
* @property int $user_id
* @property string $name
* @property string $description
* @property int $status
* @property string $link
* @property string $tags
* @property int $order
* @property int $id
* @property int $user_id
* @property string $name
* @property string $description
* @property int $status
* @property string $link
* @property string $tags
* @property int $order
* @property Carbon\Carbon $created_at
* @property Carbon\Carbon $updated_at
* @property Carbon\Carbon $deleted_at
*/
class Component extends Model implements TransformableInterface
{

View File

@@ -10,13 +10,16 @@ use Illuminate\Database\Eloquent\SoftDeletingTrait;
use Watson\Validating\ValidatingTrait;
/**
* @property int $id
* @property int $component_id
* @property int $user_id
* @property string $name
* @property int $status
* @property string $message
* @property string $humanStatus
* @property int $id
* @property int $component_id
* @property int $user_id
* @property string $name
* @property int $status
* @property string $message
* @property string $humanStatus
* @property Carbon\Carbon $created_at
* @property Carbon\Carbon $updated_at
* @property Carbon\Carbon $deleted_at
*/
class Incident extends Model implements TransformableInterface
{

View File

@@ -6,6 +6,14 @@ use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;
use Watson\Validating\ValidatingTrait;
/**
* @property int $id
* @property string $name
* @property string $slug
* @property string $template
* @property Carbon\Carbon $created_at
* @property Carbon\Carbon $updated_at
*/
class IncidentTemplate extends Model
{
use ValidatingTrait;

View File

@@ -8,11 +8,13 @@ use Illuminate\Database\Eloquent\Model;
use Watson\Validating\ValidatingTrait;
/**
* @property int $id
* @property string $name
* @property string $suffix
* @property string $description
* @property int $display_chart
* @property int $id
* @property string $name
* @property string $suffix
* @property string $description
* @property int $display_chart
* @property Carbon\Carbon $created_at
* @property Carbon\Carbon $updated_at
*/
class Metric extends Model implements TransformableInterface
{

View File

@@ -5,9 +5,11 @@ namespace CachetHQ\Cachet\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property int $metric_id
* @property int $value
* @property int $id
* @property int $metric_id
* @property int $value
* @property Carbon\Carbon $created_at
* @property Carbon\Carbon $updated_at
*/
class MetricPoint extends Model
{

View File

@@ -5,6 +5,15 @@ namespace CachetHQ\Cachet\Models;
use Illuminate\Database\Eloquent\Model;
use Watson\Validating\ValidatingTrait;
/**
* @property int $id
* @property string $type
* @property int $active
* @property string $properties
* @property Carbon\Carbon $created_at
* @property Carbon\Carbon $updated_at
* @property Carbon\Carbon $deleted_at
*/
class Service extends Model
{
use ValidatingTrait;

View File

@@ -6,9 +6,11 @@ use ErrorException;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property string $name
* @property string $value
* @property int $id
* @property string $name
* @property string $value
* @property Carbon\Carbon $created_at
* @property Carbon\Carbon $updated_at
*/
class Setting extends Model
{

View File

@@ -6,6 +6,13 @@ use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletingTrait;
use Watson\Validating\ValidatingTrait;
/**
* @property int $id
* @property string $email
* @property Carbon\Carbon $created_at
* @property Carbon\Carbon $updated_at
* @property Carbon\Carbon $deleted_at
*/
class Subscriber extends Model
{
use SoftDeletingTrait, ValidatingTrait;

View File

@@ -10,13 +10,15 @@ use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Hash;
/**
* @property int $id
* @property string $username
* @property string $password
* @property string $remember_token
* @property string $email
* @property int $active
* @property int $level
* @property int $id
* @property string $username
* @property string $password
* @property string $remember_token
* @property string $email
* @property int $active
* @property int $level
* @property Carbon\Carbon $created_at
* @property Carbon\Carbon $updated_at
*/
class User extends Model implements UserInterface, RemindableInterface
{

View File

@@ -12,9 +12,12 @@ use Illuminate\Database\Eloquent\Model;
* @property int $id
* @property string $name
* @property string $endpoint
* @property int $hook_type
* @property int $request_type
* @property int $active
* @property int $hook_type
* @property int $request_type
* @property int $active
* @property Carbon\Carbon $created_at
* @property Carbon\Carbon $updated_at
* @property Carbon\Carbon $deleted_at
*/
class WebHook extends Model
{

View File

@@ -4,6 +4,18 @@ namespace CachetHQ\Cachet\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property int $hook_id
* @property int $response_code
* @property string $sent_headers
* @property string $sent_body
* @property string $recv_headers
* @property string $recv_body
* @property float $time_taken
* @property Carbon\Carbon $created_at
* @property Carbon\Carbon $updated_at
*/
class WebHookResponse extends Model
{
/**