for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Oc\Page;
use DateTime;
use Oc\Repository\AbstractEntity;
/**
* Class PageEntity
*
* @package Oc\Page
*/
class PageEntity extends AbstractEntity
{
* @var int
public $id;
* @var string
public $slug;
public $metaKeywords;
public $metaDescription;
public $metaSocial;
* @var DateTime
public $updatedAt;
* @var bool
public $active = true;
* Checks if the entity is new.
* @return bool
public function isNew()
return $this->id === null;
}