Skip to content

Commit

Permalink
Added method comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RoccoHoward committed Jul 16, 2018
1 parent 0779555 commit d71362a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/ModelStateTrait.php
Expand Up @@ -18,26 +18,51 @@ public static function bootModelStateTrait()
static::addGlobalScope(new ModelStateScope());
}

/**
* Get the created at column.
*
* @return string
*/
public function getStateCreatedAtColumn()
{
return 'created_at';
}

/**
* Get the updated at column.
*
* @return string
*/
public function getStateUpdatedAtColumn()
{
return 'updated_at';
}

/**
* Get the archived at column.
*
* @return string
*/
public function getStateArchivedAtColumn()
{
return 'archived_at';
}

/**
* Get the deleted at column.
*
* @return string
*/
public function getStateDeletedAtColumn()
{
return 'deleted_at';
}

/**
* Get the created at column.
*
* @return string
*/
public function getColumnWithTable($column)
{
return $this->getTable().'.'.$column;
Expand Down

0 comments on commit d71362a

Please sign in to comment.