for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Represents a revision.
*
* A revision is a instance of a content with a language.
*/
namespace Rocket\Entities;
use Illuminate\Database\Eloquent\Model;
* A revision is the status of a content at a certain moment in time
* @property int $id The field id
* @property int $language_id the language of this revision
* @property int $content_id the content this revision is related to
* @property bool $published the published state
* @property Content $content the content this revision is linked to
* @property-read \DateTime $created_at
* @property-read \DateTime $updated_at
class Revision extends Model
{
* @var array The attributes that should be cast to native types.
protected $casts = [
'published' => 'boolean',
];
* @var array The model's attributes.
protected $attributes = [
'published' => true,
* Get the revisions for this class
* @codeCoverageIgnore
public function content()
return $this->belongsTo(Content::class);
}