Files
newznab-tmux/app/Models/PredbHash.php
T
DariusIII 59f09bf2cf Apply fixes from StyleCI
[ci skip] [skip ci]
2018-05-14 21:28:16 +00:00

52 lines
1015 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* App\Models\PredbHash.
*
* @property int $predb_id id, of the predb entry, this hash belongs to
* @property mixed $hash
* @property-read \App\Models\Predb $predb
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PredbHash whereHash($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PredbHash wherePredbId($value)
* @mixin \Eloquent
*/
class PredbHash extends Model
{
/**
* @var bool
*/
public $incrementing = false;
/**
* @var bool
*/
protected $dateFormat = false;
/**
* @var bool
*/
public $timestamps = false;
/**
* @var array
*/
protected $guarded = [];
/**
* @var string
*/
protected $primaryKey = 'hash';
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function predb()
{
return $this->belongsTo(Predb::class, 'predb_id');
}
}